diff options
author | Mohammed Al Sahaf <[email protected]> | 2021-12-11 17:26:21 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2021-12-11 09:26:21 -0500 |
commit | 78b5356f2b1945a90de1ef7f2c7669d82098edbd (patch) | |
tree | 0e81d6cb2f48b5387cfee47c9a955afc32dde096 /modules/caddyhttp/caddyhttp.go | |
parent | 6f9b6ad78e6b9a40afbf12e53017e39abee90a6d (diff) | |
download | caddy-78b5356f2b1945a90de1ef7f2c7669d82098edbd.tar.gz caddy-78b5356f2b1945a90de1ef7f2c7669d82098edbd.zip |
fileserver: do not double-escape paths (#4447)
Diffstat (limited to 'modules/caddyhttp/caddyhttp.go')
-rw-r--r-- | modules/caddyhttp/caddyhttp.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/modules/caddyhttp/caddyhttp.go b/modules/caddyhttp/caddyhttp.go index 1404c796a..784b2b900 100644 --- a/modules/caddyhttp/caddyhttp.go +++ b/modules/caddyhttp/caddyhttp.go @@ -20,7 +20,6 @@ import ( "io" "net" "net/http" - "net/url" "path/filepath" "strconv" "strings" @@ -228,7 +227,6 @@ func StatusCodeMatches(actual, configured int) bool { // never be outside of root. The resulting path can be used // with the local file system. func SanitizedPathJoin(root, reqPath string) string { - reqPath, _ = url.PathUnescape(reqPath) if root == "" { root = "." } |