1
0
Fork 0

rofibangs: strip user input before using it

This commit is contained in:
dece 2022-06-01 10:34:04 +02:00
parent f5b24fbd72
commit 468ccfd340

View file

@ -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)