rofibangs: strip user input before using it
This commit is contained in:
parent
f5b24fbd72
commit
468ccfd340
|
@ -67,7 +67,7 @@ def open_bang(config, handle, query):
|
|||
else:
|
||||
print("Unknown handle.")
|
||||
return
|
||||
url = bang["url"].format(urllib.parse.quote(query))
|
||||
url = bang["url"].format(urllib.parse.quote(query.strip()))
|
||||
webbrowser.open_new_tab(url)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue