]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix a potential URL escape problem in Vary.
authorhno <>
Sun, 8 Sep 2002 04:51:41 +0000 (04:51 +0000)
committerhno <>
Sun, 8 Sep 2002 04:51:41 +0000 (04:51 +0000)
src/http.cc

index 7d091bfb2e0016dcb8e40cb1523815aaf26c4f98..385c4f88d1836f79f4a71b2079d020c8ec73a3c7 100644 (file)
@@ -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);