Browse Source

[mod_dirlisting] fix config parsing crash

(bug on master branch; never released)

(thx avij)

update doc that dir-listing.hide-dotfiles = "enable" by default
since lighttpd 1.4.40 https://redmine.lighttpd.net/issues/1081
master
Glenn Strauss 1 year ago
parent
commit
f2e4e83a85
  1. 4
      doc/config/conf.d/dirlisting.conf
  2. 3
      src/mod_dirlisting.c

4
doc/config/conf.d/dirlisting.conf

@ -13,9 +13,9 @@ dir-listing.activate = "disable"
##
## Hide dot files from the listing?
## By default they are listed.
## By default they are hidden (not listed).
##
dir-listing.hide-dotfiles = "disable"
dir-listing.hide-dotfiles = "enable"
##
## list of regular expressions. Files that match any of the specified

3
src/mod_dirlisting.c

@ -208,7 +208,7 @@ SETDEFAULTS_FUNC(mod_dirlisting_set_defaults) {
,{ CONST_STR_LEN("dir-listing.exclude"),
T_CONFIG_ARRAY_VLIST,
T_CONFIG_SCOPE_CONNECTION }
,{ CONST_STR_LEN("dir-listing.hide-dot-files"),
,{ CONST_STR_LEN("dir-listing.hide-dotfiles"),
T_CONFIG_BOOL,
T_CONFIG_SCOPE_CONNECTION }
,{ CONST_STR_LEN("dir-listing.external-css"),
@ -285,6 +285,7 @@ SETDEFAULTS_FUNC(mod_dirlisting_set_defaults) {
case 4: /* dir-listing.external-css */
case 5: /* dir-listing.external-js */
case 6: /* dir-listing.encoding */
break;
case 7: /* dir-listing.show-readme */
if (!buffer_string_is_empty(cpv->v.b)) {
buffer *b;

Loading…
Cancel
Save