1
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-16 21:56:40 -05:00
caddy/modules/caddyhttp/fileserver
Matt Holt 4bf6cb4199
fileserver: Reject ADS and short name paths; trim trailing dots and spaces on Windows (#5148)
* fileserver: Reject ADS and short name paths

* caddyhttp: Trim trailing space and dot on Windows

Windows ignores trailing dots and spaces in filenames.

* Fix test

* Adjust path filters

* Revert Windows test

* Actually revert the test

* Just check for colons
2022-10-18 21:55:25 -06:00
..
testdata fileserver: Support glob expansion in file matcher (#4993) 2022-09-05 13:53:41 -06:00
browse.go fileserver: stop listing dir when request context is cancelled (#5131) 2022-10-08 12:56:35 -06:00
browse.html fileserver: better dark mode visited link contrast (#5105) 2022-10-01 18:14:27 -06:00
browsetplcontext.go fileserver: stop listing dir when request context is cancelled (#5131) 2022-10-08 12:56:35 -06:00
browsetplcontext_test.go fileserver: browse: do not encode the paths in breadcrumbs and page title (#4410) 2021-11-23 03:13:09 -05:00
caddyfile.go Drop requirement for filesystems to implement fs.StatFS 2022-09-05 19:25:34 -04:00
command.go fileserver: Reinstate --debug flag 2022-09-20 16:56:02 -06:00
matcher.go core: Variadic Context.Logger(); soft deprecation 2022-09-16 16:55:36 -06:00
matcher_test.go fileserver: Support glob expansion in file matcher (#4993) 2022-09-05 13:53:41 -06:00
staticfiles.go fileserver: Reject ADS and short name paths; trim trailing dots and spaces on Windows (#5148) 2022-10-18 21:55:25 -06:00
staticfiles_test.go caddyhttp: Refactor and export SanitizedPathJoin for use in fastcgi (#4207) 2021-06-17 09:59:08 -06:00