mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 23:07:39 +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
|
// Fill excluded user list
|
||||||
$this->get_excluded();
|
$this->get_excluded();
|
||||||
|
|
||||||
|
// Prevent banning of anonymous
|
||||||
|
$this->excluded[ANONYMOUS] = ANONYMOUS;
|
||||||
|
|
||||||
$sql_usernames = [];
|
$sql_usernames = [];
|
||||||
$sql_or_like = [];
|
$sql_or_like = [];
|
||||||
foreach ($items as $item) // TODO: Prevent banning Anonymous
|
foreach ($items as $item)
|
||||||
{
|
{
|
||||||
$cleaned_username = utf8_clean_string($item);
|
$cleaned_username = utf8_clean_string($item);
|
||||||
if (stripos($cleaned_username, '*') === false)
|
if (stripos($cleaned_username, '*') === false)
|
||||||
|
Reference in New Issue
Block a user