From: Oleg Broytman Date: Tue, 27 Aug 2024 15:37:50 +0000 (+0300) Subject: Fix(webbrowser-encode-url): Encode path X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=200906d84ef2ff7bf369c1060ea6641cbbb50486;p=dotfiles.git Fix(webbrowser-encode-url): Encode path --- 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)