mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Refactoring on the operators: negation is now being handled globally
Other minors changes were also made, including adding the prefix `m_' to all the members of the class.
This commit is contained in:
@@ -26,9 +26,9 @@ namespace modsecurity {
|
||||
namespace operators {
|
||||
|
||||
bool ValidateSchema::init(const std::string &file, std::string *error) {
|
||||
m_resource = find_resource(param, file);
|
||||
m_resource = find_resource(m_param, file);
|
||||
if (m_resource == "") {
|
||||
error->assign("XML: File not found: " + param + ".");
|
||||
error->assign("XML: File not found: " + m_param + ".");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user