Bug #418 ยป 0001-bug-418-update-http-log-to-escape-backslashes.patch
src/util-print.c | ||
---|---|---|
for (u = 0; u < buflen; u++) {
|
||
if (isprint(buf[u]) && buf[u] != '\"') {
|
||
PrintBufferData(retbuf, offset, retbuflen,
|
||
"%c", buf[u]);
|
||
if (buf[u] == '\\') {
|
||
PrintBufferData(retbuf, offset, retbuflen,
|
||
"\\\\");
|
||
} else {
|
||
PrintBufferData(retbuf, offset, retbuflen,
|
||
"%c", buf[u]);
|
||
}
|
||
} else {
|
||
PrintBufferData(retbuf, offset, retbuflen,
|
||
"\\x%02X", buf[u]);
|