mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-19 18:54:23 +03:00
actions: Compute the rule association during rules load
This commit is contained in:
@@ -3821,7 +3821,7 @@ namespace yy {
|
||||
case 217: // var: "RUN_TIME_VAR_XML" "Dictionary element"
|
||||
#line 2095 "seclang-parser.yy"
|
||||
{
|
||||
VARIABLE_CONTAINER(yylhs.value.as < std::unique_ptr<Variable> > (), new variables::XML("XML:" + yystack_[0].value.as < std::string > ()));
|
||||
VARIABLE_CONTAINER(yylhs.value.as < std::unique_ptr<Variable> > (), new variables::XML_WithNSPath(yystack_[0].value.as < std::string > ()));
|
||||
}
|
||||
#line 3819 "seclang-parser.cc"
|
||||
break;
|
||||
@@ -3829,7 +3829,7 @@ namespace yy {
|
||||
case 218: // var: "RUN_TIME_VAR_XML" "Dictionary element, selected by regexp"
|
||||
#line 2099 "seclang-parser.yy"
|
||||
{
|
||||
VARIABLE_CONTAINER(yylhs.value.as < std::unique_ptr<Variable> > (), new variables::XML("XML:" + yystack_[0].value.as < std::string > ()));
|
||||
VARIABLE_CONTAINER(yylhs.value.as < std::unique_ptr<Variable> > (), new variables::XML_WithNSPath(yystack_[0].value.as < std::string > ()));
|
||||
}
|
||||
#line 3827 "seclang-parser.cc"
|
||||
break;
|
||||
@@ -3837,7 +3837,7 @@ namespace yy {
|
||||
case 219: // var: "RUN_TIME_VAR_XML"
|
||||
#line 2103 "seclang-parser.yy"
|
||||
{
|
||||
VARIABLE_CONTAINER(yylhs.value.as < std::unique_ptr<Variable> > (), new variables::XML_NoDictElement());
|
||||
VARIABLE_CONTAINER(yylhs.value.as < std::unique_ptr<Variable> > (), new variables::XML_WithoutNSPath());
|
||||
}
|
||||
#line 3835 "seclang-parser.cc"
|
||||
break;
|
||||
|
||||
@@ -2095,15 +2095,15 @@ var:
|
||||
}
|
||||
| RUN_TIME_VAR_XML DICT_ELEMENT
|
||||
{
|
||||
VARIABLE_CONTAINER($$, new variables::XML("XML:" + $2));
|
||||
VARIABLE_CONTAINER($$, new variables::XML_WithNSPath($2));
|
||||
}
|
||||
| RUN_TIME_VAR_XML DICT_ELEMENT_REGEXP
|
||||
{
|
||||
VARIABLE_CONTAINER($$, new variables::XML("XML:" + $2));
|
||||
VARIABLE_CONTAINER($$, new variables::XML_WithNSPath($2));
|
||||
}
|
||||
| RUN_TIME_VAR_XML
|
||||
{
|
||||
VARIABLE_CONTAINER($$, new variables::XML_NoDictElement());
|
||||
VARIABLE_CONTAINER($$, new variables::XML_WithoutNSPath());
|
||||
}
|
||||
| VARIABLE_FILES_TMP_NAMES DICT_ELEMENT
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user