Adds action accuracy to the parser

This commit is contained in:
Felipe Zimmerle
2015-09-09 22:26:35 -03:00
parent 1079b5ba54
commit 4095ae7b52
2 changed files with 8 additions and 0 deletions

View File

@@ -220,6 +220,7 @@ using ModSecurity::Variables::Variable;
%token <std::string> OPERATOR
%token <std::string> FREE_TEXT
%token <std::string> ACTION
%token <std::string> ACTION_ACCURACY
%token <std::string> ACTION_REDIRECT
%token <std::string> ACTION_SKIP_AFTER
%token <std::string> ACTION_AUDIT_LOG
@@ -698,6 +699,10 @@ act:
{
$$ = Transformation::instantiate($1);
}
| ACTION_ACCURACY
{
$$ = Action::instantiate($1);
}
| ACTION_REDIRECT
{
$$ = new Redirect($1);