caddyhttp: Refactor and export SanitizedPathJoin for use in fastcgi (#4207)

This commit is contained in:
Matt Holt 2021-06-17 09:59:08 -06:00 committed by GitHub
parent fbd6560976
commit 9d4ed3a323
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 131 additions and 134 deletions

View file

@ -185,7 +185,7 @@ func (m MatchFile) selectFile(r *http.Request) (matched bool) {
if strings.HasSuffix(file, "/") {
suffix += "/"
}
fullpath = sanitizedPathJoin(root, suffix)
fullpath = caddyhttp.SanitizedPathJoin(root, suffix)
return
}