mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Fixed issue #905 that dealt with compilation on c++ 5.x >
This commit is contained in:
parent
b9507e3969
commit
f262b404cc
@ -36,8 +36,8 @@ bool CustomDebugLog::write_log(int level, const std::string& message) {
|
||||
bool CustomDebugLog::contains(const std::string& pattern) {
|
||||
std::regex re(pattern);
|
||||
std::smatch match;
|
||||
|
||||
return (std::regex_search(m_log.str(), match, re) && match.size() >= 1);
|
||||
std::string s = m_log.str();
|
||||
return (std::regex_search(s, match, re) && match.size() >= 1);
|
||||
}
|
||||
|
||||
std::string CustomDebugLog::log_messages() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user