mirror of
https://github.com/restic/rest-server.git
synced 2025-12-06 17:15:45 -08:00
Fix TestSplitURLPath
This commit is contained in:
committed by
Alexander Neumann
parent
63c8797ba3
commit
c2958906ea
@@ -265,7 +265,7 @@ func TestSplitURLPath(t *testing.T) {
|
||||
{"/foo/bar", 2, []string{"foo"}, "/bar"},
|
||||
{"/locks/", 2, nil, "/locks/"},
|
||||
// This function only splits, it does not check the path components!
|
||||
{"/././locks/", 2, []string{"..", ".."}, "/locks/"},
|
||||
{"/././locks/", 2, []string{".", "."}, "/locks/"},
|
||||
{"/../../locks/", 2, []string{"..", ".."}, "/locks/"},
|
||||
{"///locks/", 2, []string{"", ""}, "/locks/"},
|
||||
{"////locks/", 2, []string{"", ""}, "//locks/"},
|
||||
|
||||
Reference in New Issue
Block a user