|
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 |
|
@@ -219,18 +219,18 @@ void ModSecurity::serverLog(void *data, std::shared_ptr<RuleMessage> rm) { |
219 | 219 | int ModSecurity::processContentOffset(const char *content, size_t len, |
220 | 220 | const char *matchString, std::string *json, const char **err) { |
221 | 221 | #ifdef WITH_YAJL |
222 | | - Utils::Regex variables("v([0-9]+),([0-9]+)"); |
223 | | - Utils::Regex operators("o([0-9]+),([0-9]+)"); |
224 | | - Utils::Regex transformations("t:(?:(?!t:).)+"); |
| 222 | + regex::Regex variables("v([0-9]+),([0-9]+)"); |
| 223 | + regex::Regex operators("o([0-9]+),([0-9]+)"); |
| 224 | + regex::Regex transformations("t:(?:(?!t:).)+"); |
225 | 225 | yajl_gen g; |
226 | 226 | std::string varValue; |
227 | 227 | std::string opValue; |
228 | 228 | const unsigned char *buf; |
229 | 229 | size_t jsonSize; |
230 | 230 |
|
231 | | - std::list<Utils::SMatch> vars = variables.searchAll(matchString); |
232 | | - std::list<Utils::SMatch> ops = operators.searchAll(matchString); |
233 | | - std::list<Utils::SMatch> trans = transformations.searchAll(matchString); |
| 231 | + std::list<regex::SMatch> vars = variables.searchAll(matchString); |
| 232 | + std::list<regex::SMatch> ops = operators.searchAll(matchString); |
| 233 | + std::list<regex::SMatch> trans = transformations.searchAll(matchString); |
234 | 234 |
|
235 | 235 | g = yajl_gen_alloc(NULL); |
236 | 236 | if (g == NULL) { |
|
0 commit comments