mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-18 18:30:35 +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:
@@ -30,10 +30,10 @@ bool IpMatchFromFile::init(const std::string &file,
|
||||
std::string e("");
|
||||
bool res = false;
|
||||
|
||||
if (param.compare(0, 8, "https://") == 0) {
|
||||
res = m_tree.addFromUrl(param, &e);
|
||||
if (m_param.compare(0, 8, "https://") == 0) {
|
||||
res = m_tree.addFromUrl(m_param, &e);
|
||||
} else {
|
||||
res = m_tree.addFromFile(param, &e);
|
||||
res = m_tree.addFromFile(m_param, &e);
|
||||
}
|
||||
|
||||
if (res == false) {
|
||||
|
||||
Reference in New Issue
Block a user