mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/9687] Prevent banning of anonymous
PHPBB3-9687
This commit is contained in:
parent
cf26a30030
commit
7b551adb2b
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue