[mod_dirlisting] treat README and HEADER as paths (fixes #2818)
commit07e57e24c2201ef80ded0f9625b04213298a736d
authorGlenn Strauss <gstrauss@gluelogic.com>
Fri, 28 Jul 2017 04:07:01 +0000 (28 00:07 -0400)
committerGlenn Strauss <gstrauss@gluelogic.com>
Fri, 28 Jul 2017 04:11:28 +0000 (28 00:11 -0400)
tree4e43d65d70780c325cf2d98dceea155110eb146d
parent6e668bfe5fb5eebe97209fdc2e6f7a6059a0ee27
[mod_dirlisting] treat README and HEADER as paths (fixes #2818)

Treat README and HEADER as filepaths.  If absolute path, take as-is.
If relative path, then take relative to directory physical path.

This extends dir-listing.show-header and dir-listing.show-readme
feature to take a filename, which was introduced in lighttpd 1.4.43

x-ref:
  "Custom HEADER and README filepaths in mod_dirlisting are treated as relative paths instead of absolute paths when file name starts with '/'"
  https://redmine.lighttpd.net/issue/2818
src/mod_dirlisting.c