mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Fix "include /foo/*.conf" for single matched object in directory
This commit is contained in:
committed by
Felipe Zimmerle
parent
3539c59a67
commit
ccc1f2031a
@@ -75,7 +75,7 @@ std::string find_resource(const std::string& resource,
|
||||
delete iss;
|
||||
|
||||
// What about `*' ?
|
||||
if (utils::expandEnv(resource, 0).size() > 1) {
|
||||
if (utils::expandEnv(resource, 0).size() > 0) {
|
||||
return resource;
|
||||
} else {
|
||||
err->append("'" + resource + "', ");
|
||||
@@ -94,7 +94,7 @@ std::string find_resource(const std::string& resource,
|
||||
delete iss;
|
||||
|
||||
// What about `*' ?
|
||||
if (utils::expandEnv(f, 0).size() > 1) {
|
||||
if (utils::expandEnv(f, 0).size() > 0) {
|
||||
return f;
|
||||
} else {
|
||||
err->append("'" + f + "'.");
|
||||
|
Reference in New Issue
Block a user