mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-18 10:20:35 +03:00
Using run time string on the operators
This commit is contained in:
@@ -22,10 +22,8 @@ namespace modsecurity {
|
||||
namespace operators {
|
||||
|
||||
bool StrEq::evaluate(Transaction *transaction, const std::string &str) {
|
||||
std::string p = MacroExpansion::expand(m_param, transaction);
|
||||
bool eq = !p.compare(str);
|
||||
|
||||
return eq;
|
||||
std::string pt(m_string->evaluate(transaction));
|
||||
return !pt.compare(str);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user