mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/9687] Prevent banning of anonymous
PHPBB3-9687
This commit is contained in:
@@ -102,9 +102,12 @@ class user extends base
|
||||
// Fill excluded user list
|
||||
$this->get_excluded();
|
||||
|
||||
// Prevent banning of anonymous
|
||||
$this->excluded[ANONYMOUS] = ANONYMOUS;
|
||||
|
||||
$sql_usernames = [];
|
||||
$sql_or_like = [];
|
||||
foreach ($items as $item) // TODO: Prevent banning Anonymous
|
||||
foreach ($items as $item)
|
||||
{
|
||||
$cleaned_username = utf8_clean_string($item);
|
||||
if (stripos($cleaned_username, '*') === false)
|
||||
|
Reference in New Issue
Block a user