Skip to content

Commit

Permalink
strip whitespace from search string
Browse files Browse the repository at this point in the history
  • Loading branch information
Qelxiros authored Dec 11, 2023
1 parent d26b9ad commit 87fcb00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion profiles/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def results():
@before_request
def search(searched=None, info=None):
# return jsonify(ldap_search_members(searched))
searched = request.args.get("q")
searched = request.args.get("q").strip()
members = ldap_search_members(searched)
if len(members) == 1:
return redirect("/user/" + members[0].uid, 302)
Expand Down

0 comments on commit 87fcb00

Please sign in to comment.