mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
parser: Adds msg: ContentInjection is not yet supported
This commit is contained in:
parent
06447ea3d4
commit
9abc37157d
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -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;
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -256,6 +256,7 @@ AUDIT_PARTS [ABCDEFHJKIZ]+
|
||||
COL_FREE_TEXT_SPACE_COMMA ([^,"])+
|
||||
COL_NAME [A-Za-z]+
|
||||
CONFIG_COMPONENT_SIG (?i:SecComponentSignature)
|
||||
CONFIG_CONTENT_INJECTION (?i:SecContentInjection)
|
||||
CONFIG_DIR_AUDIT_DIR (?i:SecAuditLogStorageDir)
|
||||
CONFIG_DIR_AUDIT_DIR_MOD (?i:SecAuditLogDirMode)
|
||||
CONFIG_DIR_AUDIT_ENG (?i:SecAuditEngine)
|
||||
@ -565,6 +566,7 @@ EQUALS_MINUS (?i:=\-)
|
||||
}
|
||||
|
||||
{CONFIG_COMPONENT_SIG}[ \t]+["]{FREE_TEXT}["] { return p::make_CONFIG_COMPONENT_SIG(strchr(yytext, ' ') + 2, *driver.loc.back()); }
|
||||
{CONFIG_CONTENT_INJECTION} { return p::make_CONFIG_CONTENT_INJECTION(*driver.loc.back()); }
|
||||
{CONFIG_DIR_AUDIT_DIR_MOD}[ ]{CONFIG_VALUE_NUMBER} { return p::make_CONFIG_DIR_AUDIT_DIR_MOD(strchr(yytext, ' ') + 1, *driver.loc.back()); }
|
||||
{CONFIG_DIR_AUDIT_DIR}[ ]{CONFIG_VALUE_PATH} { return p::make_CONFIG_DIR_AUDIT_DIR(strchr(yytext, ' ') + 1, *driver.loc.back()); }
|
||||
{CONFIG_DIR_AUDIT_ENG} { return p::make_CONFIG_DIR_AUDIT_ENG(yytext, *driver.loc.back()); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user