mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-15 17:12:14 +03:00
Encode possible binary characters in headers; add more tests
This commit is contained in:
@@ -1622,7 +1622,7 @@ std::string Transaction::toJSON(int parts) {
|
||||
|
||||
m_variableRequestHeaders.resolve(&l);
|
||||
for (auto &h : l) {
|
||||
LOGFY_ADD(h->getKey().c_str(), h->getValue());
|
||||
LOGFY_ADD(utils::string::toHexIfNeeded(h->getKey().c_str()).c_str(), utils::string::toHexIfNeeded(h->getValue()));
|
||||
delete h;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user