Adds action expirevar to the parser and fix the line counting

This commit is contained in:
Felipe Zimmerle
2015-09-09 18:31:37 -03:00
parent ee8b886371
commit 254b29265e
2 changed files with 27 additions and 7 deletions

View File

@@ -225,6 +225,7 @@ using ModSecurity::Variables::Variable;
%token <std::string> ACTION_AUDIT_LOG
%token <std::string> ACTION_SEVERITY
%token <std::string> ACTION_SETVAR
%token <std::string> ACTION_EXPIREVAR
%token <std::string> ACTION_MSG
%token <std::string> ACTION_TAG
%token <std::string> ACTION_REV
@@ -703,6 +704,10 @@ act:
{
$$ = new Severity($1);
}
| ACTION_EXPIREVAR
{
$$ = Action::instantiate($1);
}
| ACTION_SETVAR
{
std::string error;