[ticket/9687] Prevent banning of anonymous

PHPBB3-9687
This commit is contained in:
Marc Alexander 2023-07-29 23:11:22 +02:00
parent cf26a30030
commit 7b551adb2b
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -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)