Using a custom VariableMatch* implementation

Delay the variable name resolution till last minute.

Fix one of the issues raised in #2376
This commit is contained in:
Felipe Zimmerle
2020-11-22 11:04:24 -03:00
committed by Felipe Zimmerle
parent 97762dc1bc
commit eec1f00bea
15 changed files with 710 additions and 26 deletions

View File

@@ -35,9 +35,9 @@
},
"rules":[
"SecRuleEngine On",
"SecRule ARGS:keyI \"@contains value\" \"chain,id:28,pass\"",
"SecRule ARGS:keyII \"@contains other_value\" \"chain\"",
"SecRule MATCHED_VAR_NAME \"@contains asdf\" \"\""
"SecRule ARGS:keyI \"@contains value\" \"id:28,pass\"",
"SecRule ARGS:keyII \"@contains other_value\" \"id:29,pass\"",
"SecRule MATCHED_VAR_NAME \"@contains asdf\" \"id:30,pass\""
]
},
{