mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Adds macro expansion for all operators
This commit is contained in:
@@ -18,12 +18,15 @@
|
||||
#include <string>
|
||||
|
||||
#include "operators/operator.h"
|
||||
#include "src/macro_expansion.h"
|
||||
|
||||
namespace ModSecurity {
|
||||
namespace operators {
|
||||
|
||||
bool Gt::evaluate(Assay *assay, const std::string &input) {
|
||||
bool gt = atoll(input.c_str()) > atoll(param.c_str());
|
||||
std::string p = MacroExpansion::expand(param, assay);
|
||||
|
||||
bool gt = atoll(input.c_str()) > atoll(p.c_str());
|
||||
|
||||
if (negation) {
|
||||
return !gt;
|
||||
|
Reference in New Issue
Block a user