mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-16 07:56:12 +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) {
|
bool CustomDebugLog::contains(const std::string& pattern) {
|
||||||
std::regex re(pattern);
|
std::regex re(pattern);
|
||||||
std::smatch match;
|
std::smatch match;
|
||||||
|
std::string s = m_log.str();
|
||||||
return (std::regex_search(m_log.str(), match, re) && match.size() >= 1);
|
return (std::regex_search(s, match, re) && match.size() >= 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CustomDebugLog::log_messages() {
|
std::string CustomDebugLog::log_messages() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user