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) {
109
109
std::string param = " " ;
110
110
if (op.find (" " ) != std::string::npos) {
111
111
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 (" " ));
115
115
}
116
116
117
117
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\"]+
174
174
VAR_FREE_TEXT_SPACE [^ \t\" ]+
175
175
176
176
177
- SOMETHING ["]{1}[^@]{1}([^"]|([^\\ "]\\\" ))*["]{1}
177
+ SOMETHING ["]{1}[^@|! ]{1}([^"]|([^\\ "]\\\" ))*["]{1}
178
178
179
179
CONFIG_DIR_UNICODE_MAP_FILE (?i:SecUnicodeMapFile)
180
180
Original file line number Diff line number Diff line change 31
31
]
32
32
},
33
33
"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."
35
35
},
36
36
"rules" :[
37
37
" SecRuleEngine On" ,
73
73
]
74
74
},
75
75
"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."
77
77
},
78
78
"rules" :[
79
79
" SecRuleEngine On" ,
115
115
]
116
116
},
117
117
"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."
119
119
},
120
120
"rules" :[
121
121
" SecRuleEngine On" ,
157
157
]
158
158
},
159
159
"expected" :{
160
- "debug_log" :" Executing operator \" @contains \" with param \" test\" against ARGS."
160
+ "debug_log" :" Executing operator \" @contains\" with param \" test\" against ARGS."
161
161
},
162
162
"rules" :[
163
163
" SecRuleEngine On" ,
199
199
]
200
200
},
201
201
"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."
203
203
},
204
204
"rules" :[
205
205
" SecRuleEngine On" ,
242
242
]
243
243
},
244
244
"expected" :{
245
- "debug_log" :" Executing operator \" @contains \" with param \" test\" against ARGS."
245
+ "debug_log" :" Executing operator \" @contains\" with param \" test\" against ARGS."
246
246
},
247
247
"rules" :[
248
248
" SecRuleEngine On" ,
Original file line number Diff line number Diff line change 31
31
]
32
32
},
33
33
"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"
35
35
},
36
36
"rules" :[
37
37
" SecRuleEngine On" ,
88
88
]
89
89
},
90
90
"expected" :{
91
- "debug_log" :" Executing operator \" @contains \" with param \" somethingelse\" against ARGS."
91
+ "debug_log" :" Executing operator \" @contains\" with param \" somethingelse\" against ARGS."
92
92
},
93
93
"rules" :[
94
94
" SecRuleEngine On" ,
Original file line number Diff line number Diff line change 6
6
"title" :" Testing action :: SecRule directives should be case insensitive" ,
7
7
"expected" :{
8
8
"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." ,
10
10
"error_log" :" "
11
11
},
12
12
"rules" :[
You can’t perform that action at this time.
0 commit comments