From 468ccfd340ca55885e155ccb3d49edf590f8ceb3 Mon Sep 17 00:00:00 2001 From: dece Date: Wed, 1 Jun 2022 10:34:04 +0200 Subject: [PATCH] rofibangs: strip user input before using it --- rofibangs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rofibangs.py b/rofibangs.py index 78c57a9..4bd6eee 100755 --- a/rofibangs.py +++ b/rofibangs.py @@ -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)