mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Adds support to action `exec' to sec lang parser
This commit is contained in:
@@ -227,6 +227,7 @@ using modsecurity::Variables::Tx;
|
||||
%token <std::string> FREE_TEXT
|
||||
%token <std::string> ACTION
|
||||
%token <std::string> ACTION_ACCURACY
|
||||
%token <std::string> ACTION_EXEC
|
||||
%token <std::string> ACTION_ALLOW
|
||||
%token <std::string> ACTION_REDIRECT
|
||||
%token <std::string> ACTION_SKIP_AFTER
|
||||
@@ -827,6 +828,24 @@ act:
|
||||
{
|
||||
$$ = Action::instantiate($1);
|
||||
}
|
||||
| ACTION_EXEC
|
||||
{
|
||||
/*
|
||||
|
||||
TODO: exec is not implemented yet.
|
||||
|
||||
std::string error;
|
||||
Allow *exec = new Exec($1);
|
||||
|
||||
if (exec->init(&error) == false) {
|
||||
driver.parserError << error;
|
||||
YYERROR;
|
||||
}
|
||||
|
||||
$$ = exec;
|
||||
*/
|
||||
$$ = Action::instantiate($1);
|
||||
}
|
||||
| ACTION_ALLOW
|
||||
{
|
||||
/*
|
||||
|
Reference in New Issue
Block a user