]> git.mxchange.org Git - friendica.git/commitdiff
added forgotten trim
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Fri, 6 Jul 2018 13:49:27 +0000 (15:49 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Fri, 6 Jul 2018 13:49:27 +0000 (15:49 +0200)
src/Model/User.php

index f1fa32f48df450728e5e156955116693614ecd27..dc5702b6055214cafd68241b196414845b430c73 100644 (file)
@@ -323,6 +323,7 @@ class User
                }
                // check if the nickname is in the list of blocked nicknames
                $forbidden = explode(',', $forbidden_nicknames);
+               $forbidden = array_map('trim', $forbidden);
                if (in_array(strtolower($nickname), $forbidden)) {
                        return true;
                }