Skip to content
Browse files

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
  • Loading branch information...
1 parent ac4af6c commit 67149f535e0f829124f6d2975b14b16df30a32fd @trawick trawick committed Feb 7, 2014
Showing with 4 additions and 1 deletion.
  1. +4 −1 server/log.c
View
5 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 {

0 comments on commit 67149f5

Please sign in to comment.
Something went wrong with that request. Please try again.