From 9cb3e1c629e91edfeadebeff1194b55a4f18ac44 Mon Sep 17 00:00:00 2001 From: Cliff Woolley Date: Sun, 21 Apr 2002 18:35:26 +0000 Subject: [PATCH] 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 --- CHANGES | 5 +++++ modules/generators/mod_autoindex.c | 3 +++ 2 files changed, 8 insertions(+) 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); -- 2.47.3