Adds support to collection in the parser

This commit is contained in:
Felipe Zimmerle
2015-09-29 13:14:36 -07:00
parent d084ab5f2d
commit cb9524ffd7
2 changed files with 12 additions and 3 deletions

View File

@@ -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);