From: wessels <> Date: Mon, 3 Nov 1997 23:05:23 +0000 (+0000) Subject: From: Henrik Nordstrom X-Git-Tag: SQUID_3_0_PRE1~4588 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d82c8ade57fddb79977ce1e6a7b6eaa4e6763223;p=thirdparty%2Fsquid.git From: Henrik Nordstrom 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...) --- diff --git a/src/ftp.cc b/src/ftp.cc index 92fcdc5a25..b8a81d47bf 100644 --- a/src/ftp.cc +++ b/src/ftp.cc @@ -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;