From: wessels <> Date: Fri, 19 Dec 2003 13:12:40 +0000 (+0000) Subject: Bugfix: change the way that %00 is handled X-Git-Tag: SQUID_3_0_PRE4~1148 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3838e298b7a4c7ad6e1e46be31cf70e6f2150d17;p=thirdparty%2Fsquid.git Bugfix: change the way that %00 is handled --- diff --git a/lib/rfc1738.c b/lib/rfc1738.c index bbce0d0e83..c2f1654492 100644 --- a/lib/rfc1738.c +++ b/lib/rfc1738.c @@ -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';