From ab85db3ab03c248b80d96c34d09c8b91e011724c Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Tue, 23 Apr 2024 16:07:07 -0600 Subject: [PATCH] Try again --- modules/caddyhttp/caddyhttp_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/caddyhttp/caddyhttp_test.go b/modules/caddyhttp/caddyhttp_test.go index e457d95425e9..4763c383e740 100644 --- a/modules/caddyhttp/caddyhttp_test.go +++ b/modules/caddyhttp/caddyhttp_test.go @@ -65,7 +65,7 @@ func TestSanitizedPathJoin(t *testing.T) { { inputRoot: "/a/b", inputPath: "/%2e%2e%2f%2e%2e%2f", - expect: filepath.Join("/", "a", "b"), + expect: "/a/b", // inputPath fails the IsLocal test so only the root is returned }, { inputRoot: "/a/b", @@ -86,7 +86,7 @@ func TestSanitizedPathJoin(t *testing.T) { inputRoot: "C:\\www", inputPath: "/D:\\foo\\bar", expect: filepath.Join("C:\\www", "D:\\foo\\bar"), - expectWindows: filepath.Join("C:\\www"), + expectWindows: filepath.Join("C:\\www"), // inputPath fails IsLocal on Windows }, { // https://github.com/golang/go/issues/56336#issuecomment-1416214885