1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-23 18:17:24 +00:00

Fix #2243 (whitespaces are trimmed also for normal search)

This commit is contained in:
Ozzieisaacs 2021-12-28 11:31:32 +01:00
parent ae1f515446
commit c095ee3c14

View File

@ -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="",