From: Cliff Woolley Date: Sun, 21 Apr 2002 18:35:26 +0000 (+0000) Subject: Fix mod_autoindex output with SuppressRules turned on. X-Git-Tag: 2.0.36~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=219a3a1011672420095a6127b32e69ecb4a3275f;p=thirdparty%2Fapache%2Fhttpd.git Fix mod_autoindex output with SuppressRules turned on. PR: 8016 Submitted by: David Shane Holden git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94739 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index f47cd916884..5f9a875e048 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,10 @@ Changes with Apache 2.0.36 + *) mod_autoindex output when SuppressRules was specified would + omit the first carriage return so the first item in the list + would appear to the right of the column headings instead of + underneath them. PR 8016 [David Shane Holden ] + *) Moved the call to apr_mmap_dup outside the error branch so that it would actually get called. This fixes a core dump at init everytime you use the MMapFile directive. PR 8314 diff --git a/modules/generators/mod_autoindex.c b/modules/generators/mod_autoindex.c index 031045ca4ef..a2f0cd61e76 100644 --- a/modules/generators/mod_autoindex.c +++ b/modules/generators/mod_autoindex.c @@ -1607,6 +1607,9 @@ static void output_directories(struct ent **ar, int n, if (!(autoindex_opts & SUPPRESS_RULES)) { ap_rputs("
", r); } + else { + ap_rputc('\n', r); + } } else { ap_rputs("
    ", r);