From 54c2b129a22948e313aac2320a85628bfafffc1c Mon Sep 17 00:00:00 2001 From: Scott Hansen Date: Thu, 19 Aug 2021 13:15:06 -0700 Subject: [PATCH] Revert "Hopefully fix #105. Escapes every "&" in the URL". Fixes #107 This reverts commit 136c4ce5bdabe0c86aa51308f14b88704bea398f. --- urlscan/urlchoose.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/urlscan/urlchoose.py b/urlscan/urlchoose.py index fda9a24..23805c5 100644 --- a/urlscan/urlchoose.py +++ b/urlscan/urlchoose.py @@ -678,7 +678,7 @@ def browse(*args): self.search = False self.enter = False elif self.link_open_modes[0] == "Web Browser": - webbrowser.open(url.replace('&', '\&')) + webbrowser.open(url) elif self.link_open_modes[0] == "Xdg-Open": run = 'xdg-open "{}"'.format(url) process = Popen(shlex.split(run), stdout=PIPE, stdin=PIPE)