You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2006/05/17 16:23:41 UTC

svn commit: r407265 - /httpd/httpd/trunk/modules/generators/mod_autoindex.c

Author: jorton
Date: Wed May 17 07:23:41 2006
New Revision: 407265

URL: http://svn.apache.org/viewcvs?rev=407265&view=rev
Log:
* modules/generators/mod_autoindex.c (output_directories): Escape
filename in non-FancyIndexing case.

PR: 38910
Submitted by: Robby Griffin <rmg terc.edu>

Modified:
    httpd/httpd/trunk/modules/generators/mod_autoindex.c

Modified: httpd/httpd/trunk/modules/generators/mod_autoindex.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/generators/mod_autoindex.c?rev=407265&r1=407264&r2=407265&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/generators/mod_autoindex.c (original)
+++ httpd/httpd/trunk/modules/generators/mod_autoindex.c Wed May 17 07:23:41 2006
@@ -1819,8 +1819,9 @@
             ap_rputc('\n', r);
         }
         else {
-            ap_rvputs(r, "<li><a href=\"", anchor, "\"> ", t2,
-                         "</a></li>\n", NULL);
+            ap_rvputs(r, "<li><a href=\"", anchor, "\"> ",
+                      ap_escape_html(scratch, t2),
+                      "</a></li>\n", NULL);
         }
     }
     if (autoindex_opts & TABLE_INDEXING) {