mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-12-31 13:49:11 +03:00
Add support for new operator rxGlobal
This commit is contained in:
committed by
Felipe Zimmerle
parent
785958f9b5
commit
2672db103e
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -132,6 +132,7 @@ class Driver;
|
||||
#include "src/operators/rbl.h"
|
||||
#include "src/operators/rsub.h"
|
||||
#include "src/operators/rx.h"
|
||||
#include "src/operators/rx_global.h"
|
||||
#include "src/operators/str_eq.h"
|
||||
#include "src/operators/str_match.h"
|
||||
#include "src/operators/unconditional_match.h"
|
||||
@@ -455,6 +456,7 @@ using namespace modsecurity::operators;
|
||||
OPERATOR_RSUB "OPERATOR_RSUB"
|
||||
OPERATOR_RX_CONTENT_ONLY "Operator RX (content only)"
|
||||
OPERATOR_RX "OPERATOR_RX"
|
||||
OPERATOR_RX_GLOBAL "OPERATOR_RX_GLOBAL"
|
||||
OPERATOR_STR_EQ "OPERATOR_STR_EQ"
|
||||
OPERATOR_STR_MATCH "OPERATOR_STR_MATCH"
|
||||
OPERATOR_UNCONDITIONAL_MATCH "OPERATOR_UNCONDITIONAL_MATCH"
|
||||
@@ -1037,6 +1039,10 @@ op_before_init:
|
||||
{
|
||||
OPERATOR_CONTAINER($$, new operators::Rx(std::move($2)));
|
||||
}
|
||||
| OPERATOR_RX_GLOBAL run_time_string
|
||||
{
|
||||
OPERATOR_CONTAINER($$, new operators::RxGlobal(std::move($2)));
|
||||
}
|
||||
| OPERATOR_STR_EQ run_time_string
|
||||
{
|
||||
OPERATOR_CONTAINER($$, new operators::StrEq(std::move($2)));
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -302,6 +302,7 @@ OPERATOR_PM (?i:@pm)
|
||||
OPERATOR_RBL (?i:@rbl)
|
||||
OPERATOR_RSUB (?i:@rsub)
|
||||
OPERATOR_RX (?i:@rx)
|
||||
OPERATOR_RX_GLOBAL (?i:@rxGlobal)
|
||||
OPERATOR_STR_EQ (?i:@streq)
|
||||
OPERATOR_STR_MATCH (?i:@strmatch)
|
||||
OPERATOR_UNCONDITIONAL_MATCH (?i:@unconditionalMatch)
|
||||
@@ -1105,6 +1106,7 @@ EQUALS_MINUS (?i:=\-)
|
||||
{OPERATOR_PM} { BEGIN_PARAMETER(); return p::make_OPERATOR_PM(*driver.loc.back()); }
|
||||
{OPERATOR_RBL} { BEGIN_PARAMETER(); return p::make_OPERATOR_RBL( *driver.loc.back()); }
|
||||
{OPERATOR_RX} { BEGIN_PARAMETER(); return p::make_OPERATOR_RX(*driver.loc.back()); }
|
||||
{OPERATOR_RX_GLOBAL} { BEGIN_PARAMETER(); return p::make_OPERATOR_RX_GLOBAL(*driver.loc.back()); }
|
||||
{OPERATOR_STR_EQ} { BEGIN_PARAMETER(); return p::make_OPERATOR_STR_EQ(*driver.loc.back()); }
|
||||
{OPERATOR_STR_MATCH} { BEGIN_PARAMETER(); return p::make_OPERATOR_STR_MATCH(*driver.loc.back()); }
|
||||
{OPERATOR_BEGINS_WITH} { BEGIN_PARAMETER(); return p::make_OPERATOR_BEGINS_WITH(*driver.loc.back()); }
|
||||
|
||||
Reference in New Issue
Block a user