mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Limits the transformation output to 80 chars in the debug logs
This commit is contained in:
parent
f5898e94c7
commit
c98be42f8f
@ -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++;
|
||||
}
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user