]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
From: Henrik Nordstrom <hno@hem.passagen.se>
authorwessels <>
Mon, 3 Nov 1997 23:05:23 +0000 (23:05 +0000)
committerwessels <>
Mon, 3 Nov 1997 23:05:23 +0000 (23:05 +0000)
Here is a small patch to squid-1.2.beta4 to support %nn escapes in FTP
URLs... (all code was already there but never called...)

src/ftp.cc

index 92fcdc5a25186cbf36ab2f8da5182f9112b1defa..b8a81d47bf2c73fa51059b5e3196a1f270724ea1 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ftp.cc,v 1.161 1997/10/30 06:18:55 wessels Exp $
+ * $Id: ftp.cc,v 1.162 1997/11/03 16:05:23 wessels Exp $
  *
  * DEBUG: section 9     File Transfer Protocol (FTP)
  * AUTHOR: Harvest Derived
@@ -1158,6 +1158,7 @@ ftpReadType(FtpStateData * ftpState)
            path = xstrdup(ftpState->request->urlpath);
            T = &ftpState->pathcomps;
            for (d = strtok(path, "/"); d; d = strtok(NULL, "/")) {
+               rfc1738_unescape(d);
                w = xcalloc(1, sizeof(wordlist));
                w->key = xstrdup(d);
                *T = w;