mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 07:33:21 +00:00
Fix TestSplitURLPath
This commit is contained in:
parent
63c8797ba3
commit
c2958906ea
1 changed files with 1 additions and 1 deletions
|
@ -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/"},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue