1
0
Fork 0

rofibangs: strip user input before using it

master
dece 2 years ago
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…
Cancel
Save