mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Fix to test if anonymous user actually exists
This commit is contained in:
@@ -1959,8 +1959,8 @@ my $miniserv = { };
|
||||
my @anon = split(/\s+/, $miniserv->{'anonymous'} || "");
|
||||
my ($user, $found) = &get_anonymous_access($path, $miniserv);
|
||||
return 1 if ($found >= 0); # Already setup
|
||||
|
||||
if (!$user) {
|
||||
my $auser = grep { $_->{'name'} eq $user } &list_users();
|
||||
if (!$auser) {
|
||||
# Create a user if need be
|
||||
$user = "anonymous";
|
||||
my $uinfo = { 'name' => $user,
|
||||
|
||||
Reference in New Issue
Block a user