From: Joe Orton Date: Wed, 17 May 2006 14:23:41 +0000 (+0000) Subject: * modules/generators/mod_autoindex.c (output_directories): Escape X-Git-Tag: 2.3.0~2390 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0552ebe48385e203691b98c2bd12e166277cd43f;p=thirdparty%2Fapache%2Fhttpd.git * modules/generators/mod_autoindex.c (output_directories): Escape filename in non-FancyIndexing case. PR: 38910 Submitted by: Robby Griffin git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@407265 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/generators/mod_autoindex.c b/modules/generators/mod_autoindex.c index 5c7ad01afe1..0fbdf1ebb47 100644 --- a/modules/generators/mod_autoindex.c +++ b/modules/generators/mod_autoindex.c @@ -1819,8 +1819,9 @@ static void output_directories(struct ent **ar, int n, ap_rputc('\n', r); } else { - ap_rvputs(r, "
  • ", t2, - "
  • \n", NULL); + ap_rvputs(r, "
  • ", + ap_escape_html(scratch, t2), + "
  • \n", NULL); } } if (autoindex_opts & TABLE_INDEXING) {