diff --git a/src/rule.cc b/src/rule.cc index 0bb308cb..ae5344b5 100644 --- a/src/rule.cc +++ b/src/rule.cc @@ -408,7 +408,8 @@ bool Rule::evaluate(Transaction *trasn) { #ifndef NO_LOGS trasn->debug(9, "(SecDefaultAction) T (" + \ std::to_string(transformations) + ") " + \ - a->m_name + ": \"" + value +"\""); + a->m_name + ": \"" + \ + utils::string::limitTo(80, value) +"\""); #endif transformations++; } @@ -421,7 +422,8 @@ bool Rule::evaluate(Transaction *trasn) { #ifndef NO_LOGS trasn->debug(9, " T (" + \ std::to_string(transformations) + ") " + \ - a->m_name + ": \"" + value +"\""); + a->m_name + ": \"" + \ + utils::string::limitTo(80, value) + "\""); #endif transformations++; } diff --git a/test/test-cases/regression/variable-FULL_REQUEST.json b/test/test-cases/regression/variable-FULL_REQUEST.json index caf612db..ed426167 100644 --- a/test/test-cases/regression/variable-FULL_REQUEST.json +++ b/test/test-cases/regression/variable-FULL_REQUEST.json @@ -51,7 +51,7 @@ ] }, "expected":{ - "debug_log":"Content-Type: multipart/form-data; boundary=--------------------------756b6d74fa1a8ee2" + "debug_log":"Expect: 100-continue\\x0aContent-Type: multipart/form-data; boundary=------------" }, "rules":[ "SecRuleEngine On",