mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Fix parser error on free text operator
This commit is contained in:
parent
1f68075a28
commit
f44143436b
@ -397,7 +397,10 @@ op:
|
||||
}
|
||||
| FREE_TEXT
|
||||
{
|
||||
Operator *op = Operator::instantiate("\"@rx " + $1 + "\"");
|
||||
std::string text = std::string($1);
|
||||
text.pop_back();
|
||||
text.erase(0, 1);
|
||||
Operator *op = Operator::instantiate("\"@rx " + text + "\"");
|
||||
const char *error = NULL;
|
||||
if (op->init(driver.ref.back(), &error) == false) {
|
||||
driver.error(@0, error);
|
||||
|
Loading…
x
Reference in New Issue
Block a user