mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +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
|
#ifndef NO_LOGS
|
||||||
trasn->debug(9, "(SecDefaultAction) T (" + \
|
trasn->debug(9, "(SecDefaultAction) T (" + \
|
||||||
std::to_string(transformations) + ") " + \
|
std::to_string(transformations) + ") " + \
|
||||||
a->m_name + ": \"" + value +"\"");
|
a->m_name + ": \"" + \
|
||||||
|
utils::string::limitTo(80, value) +"\"");
|
||||||
#endif
|
#endif
|
||||||
transformations++;
|
transformations++;
|
||||||
}
|
}
|
||||||
@ -421,7 +422,8 @@ bool Rule::evaluate(Transaction *trasn) {
|
|||||||
#ifndef NO_LOGS
|
#ifndef NO_LOGS
|
||||||
trasn->debug(9, " T (" + \
|
trasn->debug(9, " T (" + \
|
||||||
std::to_string(transformations) + ") " + \
|
std::to_string(transformations) + ") " + \
|
||||||
a->m_name + ": \"" + value +"\"");
|
a->m_name + ": \"" + \
|
||||||
|
utils::string::limitTo(80, value) + "\"");
|
||||||
#endif
|
#endif
|
||||||
transformations++;
|
transformations++;
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"expected":{
|
"expected":{
|
||||||
"debug_log":"Content-Type: multipart/form-data; boundary=--------------------------756b6d74fa1a8ee2"
|
"debug_log":"Expect: 100-continue\\x0aContent-Type: multipart/form-data; boundary=------------"
|
||||||
},
|
},
|
||||||
"rules":[
|
"rules":[
|
||||||
"SecRuleEngine On",
|
"SecRuleEngine On",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user