parser: Adds msg: ContentInjection is not yet supported

This commit is contained in:
Felipe Zimmerle
2017-08-16 09:20:58 -03:00
parent 06447ea3d4
commit 9abc37157d
5 changed files with 6657 additions and 6627 deletions

View File

@@ -352,6 +352,7 @@ using modsecurity::operators::Operator;
%token
END 0 "end of file"
COMMA ","
CONFIG_CONTENT_INJECTION "CONFIG_CONTENT_INJECTION"
PIPE
NEW_LINE
VAR_COUNT
@@ -1162,6 +1163,16 @@ expression:
{
driver.m_components.push_back($1);
}
| CONFIG_CONTENT_INJECTION CONFIG_VALUE_ON
{
driver.error(@0, "ContentInjection is not yet supported.");
YYERROR;
}
| CONFIG_CONTENT_INJECTION CONFIG_VALUE_OFF
{
driver.error(@0, "ContentInjection is not yet supported.");
YYERROR;
}
| CONFIG_SEC_RULE_REMOVE_BY_ID
{
std::string error;