diff options
author | Jakob Unterwurzacher | 2017-02-05 18:05:35 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2017-02-05 18:05:35 +0100 |
commit | 8bcae63a5a375d918aad9f2c18804867730378e1 (patch) | |
tree | c23becd5d3e358082d9165143c3a8ec1233e4a52 /internal/ctlsock/sanitize_test.go | |
parent | 2bdd0ec802611101969a7b59c3bb7a7a1be64e9d (diff) |
ctlsock: sanitize: handle multiple leading slashes
Diffstat (limited to 'internal/ctlsock/sanitize_test.go')
-rw-r--r-- | internal/ctlsock/sanitize_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/ctlsock/sanitize_test.go b/internal/ctlsock/sanitize_test.go index bfdf0a7..d79fa7c 100644 --- a/internal/ctlsock/sanitize_test.go +++ b/internal/ctlsock/sanitize_test.go @@ -19,6 +19,7 @@ func TestSanitizePath(t *testing.T) { {"foo/../..", ""}, {"foo/../../aaaaaa", ""}, {"/foo/../../aaaaaa", ""}, + {"/////", ""}, } for _, tc := range testCases { res := SanitizePath(tc[0]) |