Fix #2243 (whitespaces are trimmed also for normal search)
This commit is contained in:
parent
ae1f515446
commit
c095ee3c14
|
@ -1069,7 +1069,7 @@ def reconnect():
|
||||||
def search():
|
def search():
|
||||||
term = request.args.get("query")
|
term = request.args.get("query")
|
||||||
if term:
|
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:
|
else:
|
||||||
return render_title_template('search.html',
|
return render_title_template('search.html',
|
||||||
searchterm="",
|
searchterm="",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user