From a49e09430886057b3c00fcdb3ac0ec58cc97f6eb Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Fri, 6 Jul 2018 15:49:27 +0200 Subject: [PATCH] added forgotten trim --- src/Model/User.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Model/User.php b/src/Model/User.php index f1fa32f48d..dc5702b605 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -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; } -- 2.39.5