From 50cf536677bb9f7a194f4a4ff84f0d61414f8f4b Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Tue, 23 Apr 2024 16:07:07 -0600 Subject: 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 e457d9542..4763c383e 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 -- cgit v1.2.3