Project

General

Profile

Bug #418 ยป 0001-bug-418-update-http-log-to-escape-backslashes.patch

Anoop Saldanha, 05/04/2012 11:07 AM

View differences:

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]);
    (1-1/1)