Project

General

Profile

Actions

Bug #1081

closed

mod_dirlisting hide-dotfiles contrary to the docs disabled by default

Added by icy almost 18 years ago. Updated almost 9 years ago.

Status:
Fixed
Priority:
Normal
Category:
mod_dirlisting
Target version:
ASK QUESTIONS IN Forums:

Description

Hiding of dotfiles is disabled in mod_dirlisting by default but the docs say otherwise.
Disabling it by default could pose a security hole in some situations.

Actions #1

Updated by gstrauss almost 9 years ago

I agree and think that dir-listing.hide-dotfiles = "enable" should be the default.

diff --git a/src/mod_dirlisting.c b/src/mod_dirlisting.c
index 338cb42..0fed2ec 100644
--- a/src/mod_dirlisting.c
+++ b/src/mod_dirlisting.c
@@ -247,7 +247,7 @@ SETDEFAULTS_FUNC(mod_dirlisting_set_defaults) {
                s->excludes = excludes_buffer_init();
                s->dir_listing = 0;
                s->external_css = buffer_init();
-               s->hide_dot_files = 0;
+               s->hide_dot_files = 1;
                s->show_readme = 0;
                s->hide_readme_file = 0;
                s->show_header = 0;
Actions #2

Updated by glen almost 9 years ago

+1 for hiding dot files default

Actions #3

Updated by stbuehler almost 9 years ago

  • Description updated (diff)
  • Assignee deleted (jan)
  • Target version set to 1.4.40
Actions #4

Updated by stbuehler almost 9 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset r3094.

Actions

Also available in: Atom