]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #969: FTP directory listing DOCTYPE misread by certain thirdparty tools
authorhno <>
Tue, 1 Jun 2004 05:17:51 +0000 (05:17 +0000)
committerhno <>
Tue, 1 Jun 2004 05:17:51 +0000 (05:17 +0000)
src/ftp.cc

index 8b1c8d63ff0eedfbf7d962ed851086e1452191f4..a2c324f9975d50abcd4f70ee76e15fedd11c0e95 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ftp.cc,v 1.357 2004/04/04 15:05:13 hno Exp $
+ * $Id: ftp.cc,v 1.358 2004/05/31 23:17:51 hno Exp $
  *
  * DEBUG: section 9     File Transfer Protocol (FTP)
  * AUTHOR: Harvest Derived
@@ -477,10 +477,10 @@ ftpListingStart(FtpStateData * ftpState)
     int i, j, k;
     char *title;
     storeBuffer(e);
+    storeAppendPrintf(e, "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
     storeAppendPrintf(e, "<!-- HTML listing generated by Squid %s -->\n",
                       version_string);
     storeAppendPrintf(e, "<!-- %s -->\n", mkrfc1123(squid_curtime));
-    storeAppendPrintf(e, "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
     storeAppendPrintf(e, "<HTML><HEAD><TITLE>\n");
     storeAppendPrintf(e, "FTP Directory: %s\n",
                       html_quote(ftpState->title_url.buf()));