|
38 | 38 | #include "src/collection/backend/in_memory-per_process.h" |
39 | 39 | #include "src/collection/backend/lmdb.h" |
40 | 40 | #include "src/unique_id.h" |
41 | | -#include "src/utils/regex.h" |
| 41 | +#include "src/regex/regex.h" |
42 | 42 | #include "src/utils/geo_lookup.h" |
43 | 43 | #include "src/actions/transformations/transformation.h" |
44 | 44 |
|
@@ -221,17 +221,17 @@ void ModSecurity::serverLog(void *data, std::shared_ptr<RuleMessage> rm) { |
221 | 221 | int ModSecurity::processContentOffset(const char *content, size_t len, |
222 | 222 | const char *matchString, std::string *json, const char **err) { |
223 | 223 | #ifdef WITH_YAJL |
224 | | - Utils::Regex variables("v([0-9]+),([0-9]+)"); |
225 | | - Utils::Regex operators("o([0-9]+),([0-9]+)"); |
226 | | - Utils::Regex transformations("t:(?:(?!t:).)+"); |
| 224 | + regex::Regex variables("v([0-9]+),([0-9]+)"); |
| 225 | + regex::Regex operators("o([0-9]+),([0-9]+)"); |
| 226 | + regex::Regex transformations("t:(?:(?!t:).)+"); |
227 | 227 | yajl_gen g; |
228 | 228 | std::string varValue; |
229 | 229 | const unsigned char *buf; |
230 | 230 | size_t jsonSize; |
231 | 231 |
|
232 | | - std::list<Utils::SMatch> vars = variables.searchAll(matchString); |
233 | | - std::list<Utils::SMatch> ops = operators.searchAll(matchString); |
234 | | - std::list<Utils::SMatch> trans = transformations.searchAll(matchString); |
| 232 | + std::list<regex::SMatch> vars = variables.searchAll(matchString); |
| 233 | + std::list<regex::SMatch> ops = operators.searchAll(matchString); |
| 234 | + std::list<regex::SMatch> trans = transformations.searchAll(matchString); |
235 | 235 |
|
236 | 236 | g = yajl_gen_alloc(NULL); |
237 | 237 | if (g == NULL) { |
|
0 commit comments