1
1
Fork 0

added forgotten trim

This commit is contained in:
Tobias Diekershoff 2018-07-06 15:49:27 +02:00
parent 72638acac3
commit a49e094308

View 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;
}