File tree Expand file tree Collapse file tree 5 files changed +13
-13
lines changed
test/test-cases/regression Expand file tree Collapse file tree 5 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -109,9 +109,9 @@ Operator *Operator::instantiate(std::string op_string) {
109109 std::string param = " " ;
110110 if (op.find (" " ) != std::string::npos) {
111111 param = op;
112- param.erase (0 , op_string .find (" " ));
113- op.erase (op_string .find (" " ),
114- op_string .length () - op_string .find (" " ));
112+ param.erase (0 , param .find (" " ) + 1 );
113+ op.erase (op .find (" " ),
114+ op .length () - op .find (" " ));
115115 }
116116
117117 for (std::basic_string<char >::iterator p = op.begin ();
Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ VAR_FREE_TEXT_SPACE_COMMA [^, \t\"]+
174174VAR_FREE_TEXT_SPACE [^ \t\" ]+
175175
176176
177- SOMETHING ["]{1}[^@]{1}([^"]|([^\\ "]\\\" ))*["]{1}
177+ SOMETHING ["]{1}[^@|! ]{1}([^"]|([^\\ "]\\\" ))*["]{1}
178178
179179CONFIG_DIR_UNICODE_MAP_FILE (?i:SecUnicodeMapFile)
180180
Original file line number Diff line number Diff line change 3131 ]
3232 },
3333 "expected" :{
34- "debug_log" :" Executing operator \" @contains \" with param \" config_example2\" against ARGS."
34+ "debug_log" :" Executing operator \" @contains\" with param \" config_example2\" against ARGS."
3535 },
3636 "rules" :[
3737 " SecRuleEngine On" ,
7373 ]
7474 },
7575 "expected" :{
76- "debug_log" :" Executing operator \" @contains \" with param \" config_example\" against ARGS."
76+ "debug_log" :" Executing operator \" @contains\" with param \" config_example\" against ARGS."
7777 },
7878 "rules" :[
7979 " SecRuleEngine On" ,
115115 ]
116116 },
117117 "expected" :{
118- "debug_log" :" Executing operator \" @contains \" with param \" config_example2\" against ARGS."
118+ "debug_log" :" Executing operator \" @contains\" with param \" config_example2\" against ARGS."
119119 },
120120 "rules" :[
121121 " SecRuleEngine On" ,
157157 ]
158158 },
159159 "expected" :{
160- "debug_log" :" Executing operator \" @contains \" with param \" test\" against ARGS."
160+ "debug_log" :" Executing operator \" @contains\" with param \" test\" against ARGS."
161161 },
162162 "rules" :[
163163 " SecRuleEngine On" ,
199199 ]
200200 },
201201 "expected" :{
202- "debug_log" :" Executing operator \" @contains \" with param \" config_example2\" against ARGS."
202+ "debug_log" :" Executing operator \" @contains\" with param \" config_example2\" against ARGS."
203203 },
204204 "rules" :[
205205 " SecRuleEngine On" ,
242242 ]
243243 },
244244 "expected" :{
245- "debug_log" :" Executing operator \" @contains \" with param \" test\" against ARGS."
245+ "debug_log" :" Executing operator \" @contains\" with param \" test\" against ARGS."
246246 },
247247 "rules" :[
248248 " SecRuleEngine On" ,
Original file line number Diff line number Diff line change 3131 ]
3232 },
3333 "expected" :{
34- "debug_log" :" Executing operator \" @pmfromfile \" with param \" https://www.modsecurity.org/modsecurity-regression-test.txt\" against REQUEST_FILENAME"
34+ "debug_log" :" Executing operator \" @pmfromfile\" with param \" https://www.modsecurity.org/modsecurity-regression-test.txt\" against REQUEST_FILENAME"
3535 },
3636 "rules" :[
3737 " SecRuleEngine On" ,
8888 ]
8989 },
9090 "expected" :{
91- "debug_log" :" Executing operator \" @contains \" with param \" somethingelse\" against ARGS."
91+ "debug_log" :" Executing operator \" @contains\" with param \" somethingelse\" against ARGS."
9292 },
9393 "rules" :[
9494 " SecRuleEngine On" ,
Original file line number Diff line number Diff line change 66 "title" :" Testing action :: SecRule directives should be case insensitive" ,
77 "expected" :{
88 "audit_log" :" " ,
9- "debug_log" :" Executing operator \" @contains \" with param \" PHPSESSID\" against REQUEST_HEADERS." ,
9+ "debug_log" :" Executing operator \" @contains\" with param \" PHPSESSID\" against REQUEST_HEADERS." ,
1010 "error_log" :" "
1111 },
1212 "rules" :[
You can’t perform that action at this time.
0 commit comments