diff options
author | Matt Holt <[email protected]> | 2021-06-17 09:59:08 -0600 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-17 09:59:08 -0600 |
commit | 9d4ed3a3236df06e54c80c4f6633b66d68ad3673 (patch) | |
tree | f516a98ff44465f2434a03c4625dc969d87857e2 /modules/caddyhttp/fileserver/browse.go | |
parent | fbd6560976dc73052bd5d3277869912de68f6731 (diff) | |
download | caddy-9d4ed3a3236df06e54c80c4f6633b66d68ad3673.tar.gz caddy-9d4ed3a3236df06e54c80c4f6633b66d68ad3673.zip |
caddyhttp: Refactor and export SanitizedPathJoin for use in fastcgi (#4207)v2.4.3
Diffstat (limited to 'modules/caddyhttp/fileserver/browse.go')
-rw-r--r-- | modules/caddyhttp/fileserver/browse.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/fileserver/browse.go b/modules/caddyhttp/fileserver/browse.go index 3122f12b4..cd9bcbcd7 100644 --- a/modules/caddyhttp/fileserver/browse.go +++ b/modules/caddyhttp/fileserver/browse.go @@ -207,7 +207,7 @@ func isSymlinkTargetDir(f os.FileInfo, root, urlPath string) bool { if !isSymlink(f) { return false } - target := sanitizedPathJoin(root, path.Join(urlPath, f.Name())) + target := caddyhttp.SanitizedPathJoin(root, path.Join(urlPath, f.Name())) targetInfo, err := os.Stat(target) if err != nil { return false |