Searching for usernames should only be possible for search strings with a valid format
Currently you can search for usernames matching "hello world" or "really long text here" even though there never will be any usernames in that format (as we for example don't allow spaces in usernames). Currently there seem to be some spots sending crap to the search form and searching for users, this in turn can take quite a while:
5532.026 ms execute <unnamed>: SELECT "users".* FROM "users" WHERE (("users"."name" ILIKE '%Hiding video entries by default after upload (image entries can be directly visible) Adding an option to admin to make them visible. You can already edit an entry now as an admin Adding an option to admin to remove an entry. Show which entries are visible and which are not in admin Send an e-mail notification to admin after an entry has been uploaded%' OR "users"."email" ILIKE '%Hiding video entries by default after upload (image entries can be directly visible) Adding an option to admin to make them visible. You can already edit an entry now as an admin Adding an option to admin to remove an entry. Show which entries are visible and which are not in admin Send an e-mail notification to admin after an entry has been uploaded%') OR "users"."username" ILIKE '%Hiding video entries by default after upload (image entries can be directly visible) Adding an option to admin to make them visible. You can already edit an entry now as an admin Adding an option to admin to remove an entry. Show which entries are visible and which are not in admin Send an e-mail notification to admin after an entry has been uploaded%') AND ("users"."state" IN ('active')) ORDER BY "users"."name" ASC LIMIT 20 OFFSET 0
Since usernames have a fixed format we can simply match the search string and not show any results if the search string is in an invalid format (or display a warning of sorts).