mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Fix the regression test regexp validation
This commit is contained in:
parent
f93c0de940
commit
2c39f83b5f
@ -37,8 +37,7 @@ bool CustomDebugLog::contains(const std::string& pattern) {
|
|||||||
ModSecurity::Utils::Regex re(pattern);
|
ModSecurity::Utils::Regex re(pattern);
|
||||||
ModSecurity::Utils::SMatch match;
|
ModSecurity::Utils::SMatch match;
|
||||||
std::string s = m_log.str();
|
std::string s = m_log.str();
|
||||||
return (ModSecurity::Utils::regex_search(s, &match, re)
|
return ModSecurity::Utils::regex_search(s, re);
|
||||||
&& match.size() >= 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CustomDebugLog::log_messages() {
|
std::string CustomDebugLog::log_messages() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user