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:
|
else:
|
||||||
print("Unknown handle.")
|
print("Unknown handle.")
|
||||||
return
|
return
|
||||||
url = bang["url"].format(urllib.parse.quote(query))
|
url = bang["url"].format(urllib.parse.quote(query.strip()))
|
||||||
webbrowser.open_new_tab(url)
|
webbrowser.open_new_tab(url)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue