You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2014/02/07 20:54:06 UTC

svn commit: r1565777 - /httpd/httpd/trunk/server/log.c

Author: trawick
Date: Fri Feb  7 19:54:06 2014
New Revision: 1565777

URL: http://svn.apache.org/r1565777
Log:
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.

Modified:
    httpd/httpd/trunk/server/log.c

Modified: httpd/httpd/trunk/server/log.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/log.c?rev=1565777&r1=1565776&r2=1565777&view=diff
==============================================================================
--- httpd/httpd/trunk/server/log.c (original)
+++ httpd/httpd/trunk/server/log.c Fri Feb  7 19:54:06 2014
@@ -1355,7 +1355,10 @@ static void fmt_data(unsigned char *buf,
     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 {