Skip to content

Commit

Permalink
Fix the regression test regexp validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe Zimmerle committed Sep 24, 2015
1 parent f93c0de commit 2c39f83
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/regression/custom_debug_log.cc
Expand Up @@ -37,8 +37,7 @@ bool CustomDebugLog::contains(const std::string& pattern) {
ModSecurity::Utils::Regex re(pattern);
ModSecurity::Utils::SMatch match;
std::string s = m_log.str();
return (ModSecurity::Utils::regex_search(s, &match, re)
&& match.size() >= 1);
return ModSecurity::Utils::regex_search(s, re);
}

std::string CustomDebugLog::log_messages() {
Expand Down

0 comments on commit 2c39f83

Please sign in to comment.