Skip to content

Commit

Permalink
Revert "escape only first @ in URI for UZBL"
Browse files Browse the repository at this point in the history
This reverts commit c575a4d.
  • Loading branch information
pain64 committed Dec 20, 2016
1 parent c575a4d commit f0ba804
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ def browser_url(url, cb=lambda _: True, force=False):
current_browser_url = url

"""Uzbl handles full URI format incorrect: scheme://uname:passwd@domain:port/path
We need to escape first occurrence of @"""
escaped_url = current_browser_url.replace('@', '\\@', 1)
We need to escape @"""
escaped_url = current_browser_url.replace('@', '\\@')

browser_send('uri ' + escaped_url, cb=cb)
logging.info('current url is %s', current_browser_url)
Expand Down

0 comments on commit f0ba804

Please sign in to comment.