summaryrefslogtreecommitdiff
path: root/caddytest/integration/reverseproxy_test.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2020-09-11 12:20:39 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2020-09-11 12:20:39 -0600
commit0ee4378227cf3019dcbaddeb3977ddd28e58429a (patch)
tree33a8bb0e2f399d239222d2dea8aa135ce0ba741a /caddytest/integration/reverseproxy_test.go
parent9859ab8148435e64accd8d66e67db29fb5cbc9e7 (diff)
fileserver: Improve file hiding logic for directories and prefixes
Now, a filename to hide that is specified without a path separator will count as hidden if it appears in any component of the file path (not only the last component); semantically, this means hiding a file by only its name (without any part of a path) will hide both files and folders, e.g. hiding ".git" will hide "/.git" and also "/.git/foo". We also do prefix matching so that hiding "/.git" will hide "/.git" and "/.git/foo" but not "/.gitignore". The remaining logic is a globular match like before.
Diffstat (limited to 'caddytest/integration/reverseproxy_test.go')
0 files changed, 0 insertions, 0 deletions