]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bugfix: change the way that %00 is handled
authorwessels <>
Fri, 19 Dec 2003 13:12:40 +0000 (13:12 +0000)
committerwessels <>
Fri, 19 Dec 2003 13:12:40 +0000 (13:12 +0000)
lib/rfc1738.c

index bbce0d0e832cb1e1d320e68d11de18b501ac06f4..c2f16544920ccee79cc671e1e3e714612c1707b7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: rfc1738.c,v 1.25 2003/06/19 13:12:00 robertc Exp $
+ * $Id: rfc1738.c,v 1.26 2003/12/19 06:12:40 wessels Exp $
  *
  * DEBUG: 
  * AUTHOR: Harvest Derived
@@ -195,6 +195,10 @@ rfc1738_unescape(char *s)
            continue;
        }
        if (s[j + 1] && s[j + 2]) {
+           if (s[j + 1] == '0' && s[j + 2] == '0') {   /* %00 case */
+               j += 2;
+               continue;
+           }
            hexnum[0] = s[j + 1];
            hexnum[1] = s[j + 2];
            hexnum[2] = '\0';