From: wessels <> Date: Tue, 10 Jun 2003 03:52:21 +0000 (+0000) Subject: log_quote() and username_quote() should always quote the '%' character X-Git-Tag: SQUID_3_0_PRE1~133 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7c0130811eb1d473582edc47f2feb07e66ccac5d;p=thirdparty%2Fsquid.git log_quote() and username_quote() should always quote the '%' character since it is used to encode other characters. --- diff --git a/src/access_log.cc b/src/access_log.cc index 8c481e4b8c..72fbd21c28 100644 --- a/src/access_log.cc +++ b/src/access_log.cc @@ -1,6 +1,6 @@ /* - * $Id: access_log.cc,v 1.81 2003/02/23 00:08:03 robertc Exp $ + * $Id: access_log.cc,v 1.82 2003/06/09 21:52:21 wessels Exp $ * * DEBUG: section 46 Access Log * AUTHOR: Duane Wessels @@ -156,10 +156,10 @@ log_quote(const char *header) #endif if (c <= 0x1F || c >= 0x7F + || c == '%' #if OLD_LOG_MIME || c == '"' || c == '#' - || c == '%' || c == ';' || c == '<' || c == '>' @@ -225,6 +225,7 @@ username_quote(const char *header) *buf_cursor++ = 'n'; } else if (c <= 0x1F || c >= 0x7F + || c == '%' || c == ' ') { *buf_cursor++ = '%'; i = c * 2;