diff options
author | Mohammed Al Sahaf <[email protected]> | 2021-11-23 11:13:09 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2021-11-23 03:13:09 -0500 |
commit | 1e10f6f725189a371a923a329084f1c3f608ae38 (patch) | |
tree | b7bd3e17c4b365a9cde81c160b3b664b94440ddf /modules/caddyhttp/fileserver/browsetplcontext_test.go | |
parent | c8b5a81607c9c2799f46f42154ee311884723aa4 (diff) | |
download | caddy-1e10f6f725189a371a923a329084f1c3f608ae38.tar.gz caddy-1e10f6f725189a371a923a329084f1c3f608ae38.zip |
fileserver: browse: do not encode the paths in breadcrumbs and page title (#4410)
Diffstat (limited to 'modules/caddyhttp/fileserver/browsetplcontext_test.go')
-rw-r--r-- | modules/caddyhttp/fileserver/browsetplcontext_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/caddyhttp/fileserver/browsetplcontext_test.go b/modules/caddyhttp/fileserver/browsetplcontext_test.go index 01e6c8f1f..9f0d08e1b 100644 --- a/modules/caddyhttp/fileserver/browsetplcontext_test.go +++ b/modules/caddyhttp/fileserver/browsetplcontext_test.go @@ -36,6 +36,19 @@ func TestBreadcrumbs(t *testing.T) { {Link: "../", Text: "quux"}, {Link: "", Text: "corge"}, }}, + {"/مجلد/", []crumb{ + {Link: "../", Text: "/"}, + {Link: "", Text: "مجلد"}, + }}, + {"/مجلد-1/مجلد-2", []crumb{ + {Link: "../../", Text: "/"}, + {Link: "../", Text: "مجلد-1"}, + {Link: "", Text: "مجلد-2"}, + }}, + {"/مجلد%2F1", []crumb{ + {Link: "../", Text: "/"}, + {Link: "", Text: "مجلد/1"}, + }}, } for _, d := range testdata { |