Adds support to the INBOUND_DATA_ERROR variable and SecRequestBodyLimit direc.

This commit is contained in:
Felipe Zimmerle
2015-07-21 02:14:47 -03:00
parent 95c2fed89c
commit 9c066e3198
8 changed files with 138 additions and 6 deletions

View File

@@ -63,6 +63,7 @@ using ModSecurity::Utils::GeoLookup;
%left ARGS CONFIG_VALUE_RELEVANT_ONLY CONFIG_VALUE_ON CONFIG_VALUE_OFF CONFIG_VALUE
%token <std::string> DIRECTIVE
%token <std::string> CONFIG_DIRECTIVE
%token <std::string> CONFIG_DIR_REQ_BODY_LIMIT
%token <std::string> CONFIG_DIR_RULE_ENG
%token <std::string> CONFIG_DIR_REQ_BODY
%token <std::string> CONFIG_DIR_RES_BODY
@@ -250,6 +251,10 @@ expression:
{
GeoLookup::getInstance().setDataBase($1);
}
| CONFIG_DIR_REQ_BODY_LIMIT
{
driver.requestBodyLimit = atoi($1.c_str());
}
variables:
variables PIPE VARIABLE