Adds ctl:forceRequestBodyVariable to the seclang parser

This commit is contained in:
Felipe Zimmerle
2015-09-09 22:43:18 -03:00
parent 4095ae7b52
commit 736183b7f1
2 changed files with 12 additions and 0 deletions

View File

@@ -239,6 +239,7 @@ using ModSecurity::Variables::Variable;
%token <std::string> ACTION_CTL_BDY_JSON
%token <std::string> ACTION_CTL_BDY_XML
%token <std::string> ACTION_CTL_RULE_ENGINE
%token <std::string> ACTION_CTL_FORCE_REQ_BODY_VAR
%type <std::vector<Action *> *> actions
%type <std::vector<Variable *> *> variables
@@ -773,6 +774,14 @@ act:
{
$$ = new CtlAuditLogParts($1);
}
| ACTION_CTL_FORCE_REQ_BODY_VAR CONFIG_VALUE_ON
{
$$ = Action::instantiate($1);
}
| ACTION_CTL_FORCE_REQ_BODY_VAR CONFIG_VALUE_OFF
{
$$ = Action::instantiate($1);
}
| ACTION_CTL_RULE_ENGINE CONFIG_VALUE_ON
{
$$ = Action::instantiate($1);