aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules/caddyhttp/caddyhttp.go
diff options
context:
space:
mode:
authorFrancis Lavoie <[email protected]>2023-02-06 11:29:20 -0500
committerGitHub <[email protected]>2023-02-06 11:29:20 -0500
commite62b5fb58619364051551a7ee614fb9949cfe69a (patch)
treea08ff753dde04763b8a36a564b2b0504a86f4262 /modules/caddyhttp/caddyhttp.go
parent94b8d56096b2581d6739b057655e7b895c8fd3bb (diff)
downloadcaddy-e62b5fb58619364051551a7ee614fb9949cfe69a.tar.gz
caddy-e62b5fb58619364051551a7ee614fb9949cfe69a.zip
chore: Build with Go 1.20, keep minimum at 1.18 for now (#5353)
Diffstat (limited to 'modules/caddyhttp/caddyhttp.go')
-rw-r--r--modules/caddyhttp/caddyhttp.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/caddyhttp.go b/modules/caddyhttp/caddyhttp.go
index c9cc9e6d9..c497dc7a1 100644
--- a/modules/caddyhttp/caddyhttp.go
+++ b/modules/caddyhttp/caddyhttp.go
@@ -232,7 +232,7 @@ func SanitizedPathJoin(root, reqPath string) string {
root = "."
}
- path := filepath.Join(root, filepath.Clean("/"+reqPath))
+ path := filepath.Join(root, path.Clean("/"+reqPath))
// filepath.Join also cleans the path, and cleaning strips
// the trailing slash, so we need to re-add it afterwards.