---------------------
PatchSet 11255
Date: 2007/02/13 22:12:09
Author: hno
Branch: HEAD
Tag: (none)
Log:
Fix a minor HTML coding error in ftp directory listings with // in the path
Members:
src/ftp.c:1.342->1.343
Index: squid/src/ftp.c
===================================================================
RCS file: /cvsroot/squid/squid/src/ftp.c,v
retrieving revision 1.342
retrieving revision 1.343
diff -u -r1.342 -r1.343
--- squid/src/ftp.c 19 Jan 2007 00:52:49 -0000 1.342
+++ squid/src/ftp.c 13 Feb 2007 22:12:09 -0000 1.343
@@ -1,6 +1,6 @@
/*
- * $Id: ftp.c,v 1.342 2007/01/19 00:52:49 hno Exp $
+ * $Id: ftp.c,v 1.343 2007/02/13 22:12:09 hno Exp $
*
* DEBUG: section 9 File Transfer Protocol (FTP)
* AUTHOR: Harvest Derived
@@ -393,18 +393,14 @@
assert(strLen(ftpState->title_url) >= 6);
k = 6 + strcspn(&title[6], "/");
for (i = 6, j = 0; title[i]; j = i) {
- storeAppendPrintf(e, " j) {
char *url = xstrdup(title);
url[i] = '\0';
- storeAppendPrintf(e, "%s", html_quote(url + k));
- storeAppendPrintf(e, "/");
- storeAppendPrintf(e, "\">");
+ storeAppendPrintf(e, "", html_quote(url + k));
rfc1738_unescape(url + j);
- storeAppendPrintf(e, "%s", html_quote(url + j));
+ storeAppendPrintf(e, "%s", html_quote(url + j));
safe_free(url);
- storeAppendPrintf(e, "");
}
storeAppendPrintf(e, "/");
if (title[i] == '/')