mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Adds support to the `skip' action
This commit is contained in:
@@ -30,6 +30,7 @@ class Driver;
|
||||
#include "actions/set_uid.h"
|
||||
#include "actions/set_var.h"
|
||||
#include "actions/severity.h"
|
||||
#include "actions/skip.h"
|
||||
#include "actions/skip_after.h"
|
||||
#include "actions/msg.h"
|
||||
#include "actions/phase.h"
|
||||
@@ -1087,13 +1088,7 @@ act:
|
||||
| ACTION_SKIP
|
||||
{
|
||||
std::string error;
|
||||
/*
|
||||
|
||||
TODO: skip is not implemented yet.
|
||||
|
||||
$$ = new modsecurity::actions::SkipAfter($1);
|
||||
*/
|
||||
$$ = Action::instantiate($1);
|
||||
$$ = new modsecurity::actions::Skip($1);
|
||||
if ($$->init(&error) == false) {
|
||||
driver.error(@0, error);
|
||||
YYERROR;
|
||||
|
Reference in New Issue
Block a user