]> git.phdru.name Git - dotfiles.git/commitdiff
Fix(webbrowser-encode-url): Encode path
authorOleg Broytman <phd@phdru.name>
Tue, 27 Aug 2024 15:37:50 +0000 (18:37 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 27 Aug 2024 15:37:50 +0000 (18:37 +0300)
bin/webbrowser-encode-url

index e30b6ff26d496d86ac49d8d627653216be927a92..4444c4bd9f20d77b84644fa05eacd0f7ad67bfb4 100755 (executable)
@@ -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)