mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-18 02:10:36 +03:00
Fix the regression tests as reported on #1142
This commit is contained in:
@@ -26,7 +26,7 @@ bool Contains::evaluate(Transaction *transaction, const std::string &input) {
|
||||
std::string p = MacroExpansion::expand(param, transaction);
|
||||
bool contains = input.find(p) != std::string::npos;
|
||||
|
||||
if (contains) {
|
||||
if (contains && transaction) {
|
||||
transaction->m_matched.push_back(p);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user