From: Jeff Trawick Date: Fri, 7 Feb 2014 19:54:06 +0000 (+0000) Subject: Follow-up to r1512819: X-Git-Tag: 2.5.0-alpha~4500 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ebfa4e231d0616e4600695ff42f87e694c0ebea1;p=apache 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 --- 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 {