1
0
mirror of https://github.com/makew0rld/amfora.git synced 2024-06-19 19:25:24 +00:00

Escape file/folder name in tab for #202

This commit is contained in:
makeworld 2022-04-25 20:14:32 -04:00
parent 3917402e2d
commit 99fbd021a6

View File

@ -547,7 +547,7 @@ func (t *tab) label() string {
}
if strings.HasPrefix(t.page.URL, "file://") {
// File URL, use file or folder as tab name
return path.Base(t.page.URL[7:])
return cview.Escape(path.Base(t.page.URL[7:]))
}
// Otherwise, it's a Gemini URL
pu, err := url.Parse(t.page.URL)