mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Adds support for ctl:requestBodyProcessor=URLENCODED
This commit is contained in:
committed by
Felipe Zimmerle
parent
dc4382da58
commit
f999f54eda
@@ -28,6 +28,7 @@ class Driver;
|
||||
#include "src/actions/ctl/rule_engine.h"
|
||||
#include "src/actions/ctl/request_body_processor_json.h"
|
||||
#include "src/actions/ctl/request_body_processor_xml.h"
|
||||
#include "src/actions/ctl/request_body_processor_urlencoded.h"
|
||||
#include "src/actions/ctl/rule_remove_by_id.h"
|
||||
#include "src/actions/ctl/rule_remove_by_tag.h"
|
||||
#include "src/actions/ctl/rule_remove_target_by_id.h"
|
||||
@@ -523,6 +524,7 @@ using modsecurity::operators::Operator;
|
||||
ACTION_CTL_AUDIT_LOG_PARTS "ACTION_CTL_AUDIT_LOG_PARTS"
|
||||
ACTION_CTL_BDY_JSON "ACTION_CTL_BDY_JSON"
|
||||
ACTION_CTL_BDY_XML "ACTION_CTL_BDY_XML"
|
||||
ACTION_CTL_BDY_URLENCODED "ACTION_CTL_BDY_URLENCODED"
|
||||
ACTION_CTL_FORCE_REQ_BODY_VAR "ACTION_CTL_FORCE_REQ_BODY_VAR"
|
||||
ACTION_CTL_REQUEST_BODY_ACCESS "ACTION_CTL_REQUEST_BODY_ACCESS"
|
||||
ACTION_CTL_RULE_REMOVE_BY_ID "ACTION_CTL_RULE_REMOVE_BY_ID"
|
||||
@@ -2554,6 +2556,10 @@ act:
|
||||
{
|
||||
ACTION_CONTAINER($$, new actions::ctl::RequestBodyProcessorXML($1));
|
||||
}
|
||||
| ACTION_CTL_BDY_URLENCODED
|
||||
{
|
||||
ACTION_CONTAINER($$, new actions::ctl::RequestBodyProcessorURLENCODED($1));
|
||||
}
|
||||
| ACTION_CTL_FORCE_REQ_BODY_VAR CONFIG_VALUE_ON
|
||||
{
|
||||
//ACTION_NOT_SUPPORTED("CtlForceReequestBody", @0);
|
||||
|
Reference in New Issue
Block a user