From c095ee3c144765ed559861caef2d0b045f704329 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Tue, 28 Dec 2021 11:31:32 +0100 Subject: [PATCH] Fix #2243 (whitespaces are trimmed also for normal search) --- cps/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/web.py b/cps/web.py index 81c37711..e139848e 100644 --- a/cps/web.py +++ b/cps/web.py @@ -1069,7 +1069,7 @@ def reconnect(): def search(): term = request.args.get("query") if term: - return redirect(url_for('web.books_list', data="search", sort_param='stored', query=term)) + return redirect(url_for('web.books_list', data="search", sort_param='stored', query=term.strip())) else: return render_title_template('search.html', searchterm="",