mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 03:57:47 +03:00
Using libpcre instead of c++11 regex
This commit is contained in:
@@ -20,10 +20,10 @@
|
||||
#include <ctype.h>
|
||||
|
||||
#include <fstream>
|
||||
#include <regex>
|
||||
|
||||
#include "src/audit_log_writer_parallel.h"
|
||||
#include "src/audit_log_writer_serial.h"
|
||||
#include "utils/regex.h"
|
||||
|
||||
#define PARTS_CONSTAINS(a, c) \
|
||||
if (new_parts.find(toupper(a)) != std::string::npos \
|
||||
@@ -134,7 +134,8 @@ bool AuditLog::init() {
|
||||
|
||||
bool AuditLog::isRelevant(int status) {
|
||||
std::string sstatus = std::to_string(status);
|
||||
return std::regex_search(sstatus, std::regex(this->m_relevant)) != 0;
|
||||
return Utils::regex_search(sstatus,
|
||||
Utils::Regex(this->m_relevant)) != 0;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user