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