]> granicus.if.org Git - apache/commitdiff
Follow-up to r1512819:
authorJeff Trawick <trawick@apache.org>
Fri, 7 Feb 2014 19:54:06 +0000 (19:54 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 7 Feb 2014 19:54:06 +0000 (19:54 +0000)
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

index fc027196a1cba610047273a1e0cd824ca7a3dec0..45d6d9eba29f6b288795931365f2d700220cf13c 100644 (file)
@@ -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 {