From: hno <> Date: Sun, 8 Sep 2002 04:51:41 +0000 (+0000) Subject: Fix a potential URL escape problem in Vary. X-Git-Tag: SQUID_3_0_PRE1~772 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70508bf529c8acfc391082e5119c42625ea4af88;p=thirdparty%2Fsquid.git Fix a potential URL escape problem in Vary. --- diff --git a/src/http.cc b/src/http.cc index 7d091bfb2e..385c4f88d1 100644 --- a/src/http.cc +++ b/src/http.cc @@ -1,6 +1,6 @@ /* - * $Id: http.cc,v 1.389 2002/09/01 13:46:56 hno Exp $ + * $Id: http.cc,v 1.390 2002/09/07 22:51:41 hno Exp $ * * DEBUG: section 11 Hypertext Transfer Protocol (HTTP) * AUTHOR: Harvest Derived @@ -346,7 +346,7 @@ httpMakeVaryMark(request_t * request, HttpReply * reply) safe_free(name); value = strBuf(hdr); if (value) { - value = rfc1738_escape(value); + value = rfc1738_escape_part(value); stringAppend(&vstr, "=\"", 2); stringAppend(&vstr, value, strlen(value)); stringAppend(&vstr, "\"", 1); @@ -365,7 +365,7 @@ httpMakeVaryMark(request_t * request, HttpReply * reply) safe_free(name); value = strBuf(hdr); if (value) { - value = rfc1738_escape(value); + value = rfc1738_escape_part(value); stringAppend(&vstr, "=\"", 2); stringAppend(&vstr, value, strlen(value)); stringAppend(&vstr, "\"", 1);