added forgotten trim
This commit is contained in:
@@ -323,6 +323,7 @@ class User
|
|||||||
}
|
}
|
||||||
// check if the nickname is in the list of blocked nicknames
|
// check if the nickname is in the list of blocked nicknames
|
||||||
$forbidden = explode(',', $forbidden_nicknames);
|
$forbidden = explode(',', $forbidden_nicknames);
|
||||||
|
$forbidden = array_map('trim', $forbidden);
|
||||||
if (in_array(strtolower($nickname), $forbidden)) {
|
if (in_array(strtolower($nickname), $forbidden)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user