mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Adds support to collection in the parser
This commit is contained in:
@@ -227,6 +227,7 @@ using ModSecurity::Variables::Variable;
|
||||
%token <std::string> ACTION_SEVERITY
|
||||
%token <std::string> ACTION_SETVAR
|
||||
%token <std::string> ACTION_EXPIREVAR
|
||||
%token <std::string> ACTION_INITCOL
|
||||
%token <std::string> ACTION_MSG
|
||||
%token <std::string> ACTION_TAG
|
||||
%token <std::string> ACTION_REV
|
||||
@@ -240,6 +241,7 @@ using ModSecurity::Variables::Variable;
|
||||
%token <std::string> ACTION_CTL_BDY_XML
|
||||
%token <std::string> ACTION_CTL_RULE_ENGINE
|
||||
%token <std::string> ACTION_CTL_FORCE_REQ_BODY_VAR
|
||||
%token <std::string> CONFIG_SEC_COLLECTION_TIMEOUT
|
||||
|
||||
%type <std::vector<Action *> *> actions
|
||||
%type <std::vector<Variable *> *> variables
|
||||
@@ -537,6 +539,7 @@ expression:
|
||||
| CONGIG_DIR_SEC_COOKIE_FORMAT
|
||||
| CONGIG_DIR_SEC_STATUS_ENGINE
|
||||
| CONFIG_DIR_UNICODE_MAP_FILE
|
||||
| CONFIG_SEC_COLLECTION_TIMEOUT
|
||||
{
|
||||
}
|
||||
;
|
||||
@@ -696,6 +699,10 @@ act:
|
||||
YYERROR;
|
||||
}
|
||||
}
|
||||
| ACTION_INITCOL
|
||||
{
|
||||
$$ = Action::instantiate($1);
|
||||
}
|
||||
| TRANSFORMATION
|
||||
{
|
||||
$$ = Transformation::instantiate($1);
|
||||
|
Reference in New Issue
Block a user