From 99fbd021a62179c8500bf9d374f7377329c290ae Mon Sep 17 00:00:00 2001 From: makeworld Date: Mon, 25 Apr 2022 20:14:32 -0400 Subject: [PATCH] Escape file/folder name in tab for #202 --- display/tab.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/display/tab.go b/display/tab.go index 9f9f45d..836ddef 100644 --- a/display/tab.go +++ b/display/tab.go @@ -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)