aboutsummaryrefslogtreecommitdiff
path: root/internal/ctlsock/sanitize_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-02-05 18:05:35 +0100
committerJakob Unterwurzacher2017-02-05 18:05:35 +0100
commit8bcae63a5a375d918aad9f2c18804867730378e1 (patch)
treec23becd5d3e358082d9165143c3a8ec1233e4a52 /internal/ctlsock/sanitize_test.go
parent2bdd0ec802611101969a7b59c3bb7a7a1be64e9d (diff)
ctlsock: sanitize: handle multiple leading slashes
Diffstat (limited to 'internal/ctlsock/sanitize_test.go')
-rw-r--r--internal/ctlsock/sanitize_test.go1
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])