From 200906d84ef2ff7bf369c1060ea6641cbbb50486 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 27 Aug 2024 18:37:50 +0300 Subject: [PATCH] Fix(webbrowser-encode-url): Encode path --- bin/webbrowser-encode-url | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/webbrowser-encode-url b/bin/webbrowser-encode-url index e30b6ff..4444c4b 100755 --- a/bin/webbrowser-encode-url +++ b/bin/webbrowser-encode-url @@ -79,7 +79,7 @@ if host: url += ':%d' % port if path: if protocol == "file": - url += quote(path) + url += quote(path.encode(encoding)) else: if isinstance(path, bytes): path = path.decode(default_encoding) -- 2.39.5