mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Adds action expirevar to the parser and fix the line counting
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user