Matthew Holt
4 years ago
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5
1 changed files with
2 additions and
3 deletions
-
modules/caddyhttp/fileserver/staticfiles.go
|
|
@ -138,12 +138,11 @@ func (fsrv *FileServer) ServeHTTP(w http.ResponseWriter, r *http.Request, next c |
|
|
|
filesToHide := fsrv.transformHidePaths(repl) |
|
|
|
|
|
|
|
root := repl.ReplaceAll(fsrv.Root, ".") |
|
|
|
suffix := repl.ReplaceAll(r.URL.Path, "") |
|
|
|
filename := sanitizedPathJoin(root, suffix) |
|
|
|
filename := sanitizedPathJoin(root, r.URL.Path) |
|
|
|
|
|
|
|
fsrv.logger.Debug("sanitized path join", |
|
|
|
zap.String("site_root", root), |
|
|
|
zap.String("request_path", suffix), |
|
|
|
zap.String("request_path", r.URL.Path), |
|
|
|
zap.String("result", filename)) |
|
|
|
|
|
|
|
// get information about the file
|
|
|
|