mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Adds support for the @inspectFile operator
This commit is contained in:
@@ -905,8 +905,12 @@ op_before_init:
|
||||
}
|
||||
| OPERATOR_INSPECT_FILE FREE_TEXT
|
||||
{
|
||||
/* $$ = new operators::InspectFile($1); */
|
||||
OPERATOR_NOT_SUPPORTED("InspectFile", @0);
|
||||
OPERATOR_CONTAINER($$, new operators::InspectFile($2));
|
||||
std::string error;
|
||||
if ($$->init(driver.ref.back(), &error) == false) {
|
||||
driver.error(@0, error);
|
||||
YYERROR;
|
||||
}
|
||||
}
|
||||
| OPERATOR_FUZZY_HASH FREE_TEXT
|
||||
{
|
||||
|
Reference in New Issue
Block a user