From 2c39f83b5fb313ddb015d4aa32968765c07bf155 Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Thu, 24 Sep 2015 12:33:37 -0700 Subject: [PATCH] Fix the regression test regexp validation --- test/regression/custom_debug_log.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/regression/custom_debug_log.cc b/test/regression/custom_debug_log.cc index d904a5fd..08909af4 100644 --- a/test/regression/custom_debug_log.cc +++ b/test/regression/custom_debug_log.cc @@ -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() {