From ebfa4e231d0616e4600695ff42f87e694c0ebea1 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Fri, 7 Feb 2014 19:54:06 +0000 Subject: [PATCH] Follow-up to r1512819: Don't include "\" in the printable form of the data because it will be escaped later in processing, and the extra escaping throws off the alignment. Just filter it out like unprintable characters. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1565777 13f79535-47bb-0310-9956-ffa450edef68 --- server/log.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/log.c b/server/log.c index fc027196a1..45d6d9eba2 100644 --- a/server/log.c +++ b/server/log.c @@ -1355,7 +1355,10 @@ static void fmt_data(unsigned char *buf, const void *vdata, apr_size_t len, apr_ while (*off < len && this_time < BYTES_LOGGED_PER_LINE) { unsigned char c = data[*off]; - if (apr_isprint(c)) { + if (apr_isprint(c) + && c != '\\') { /* backslash will be escaped later, which throws + * off the formatting + */ *chars = c; } else { -- 2.40.0