mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 12:07:46 +03:00
Add support for new operator rxGlobal
This commit is contained in:
committed by
Felipe Zimmerle
parent
785958f9b5
commit
2672db103e
@@ -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)));
|
||||
|
Reference in New Issue
Block a user