mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Including space in the list of readable characters for debuglog
This commit is contained in:
@@ -1011,7 +1011,7 @@ std::string toHexIfNeeded(const std::string &str) {
|
|||||||
|
|
||||||
for (int i = 0; i < str.size(); i++) {
|
for (int i = 0; i < str.size(); i++) {
|
||||||
int c = str.at(i);
|
int c = str.at(i);
|
||||||
if (c < 33 || c > 126) {
|
if (c < 32 || c > 126) {
|
||||||
res << "\\x" << std::setw(2) << std::setfill('0') << std::hex << c;
|
res << "\\x" << std::setw(2) << std::setfill('0') << std::hex << c;
|
||||||
} else {
|
} else {
|
||||||
res << str.at(i);
|
res << str.at(i);
|
||||||
|
Reference in New Issue
Block a user