mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Avoids to load a directory structure as a rules file
This commit is contained in:
@@ -157,7 +157,7 @@ int Driver::parseFile(const std::string &f) {
|
||||
std::ifstream t(f);
|
||||
std::string str;
|
||||
|
||||
if (t.is_open() == false) {
|
||||
if (utils::isFile(f) == false) {
|
||||
m_parserError << "Failed to open the file: " << f << std::endl;
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user