summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/caddyhttp.go
diff options
context:
space:
mode:
authorFrancis Lavoie <lavofr@gmail.com>2023-02-06 11:29:20 -0500
committerGitHub <noreply@github.com>2023-02-06 11:29:20 -0500
commite62b5fb58619364051551a7ee614fb9949cfe69a (patch)
treea08ff753dde04763b8a36a564b2b0504a86f4262 /modules/caddyhttp/caddyhttp.go
parent94b8d56096b2581d6739b057655e7b895c8fd3bb (diff)
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 c9cc9e6..c497dc7 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.