From: eldy <> Date: Wed, 4 May 2005 19:51:01 +0000 (+0000) Subject: Fixed: [ 1186582 ] Authentication problem in Windows NT/AD Domains X-Git-Tag: AWSTATS_WEBMIN_1_6_BETA~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5e5c74e50d5af1e1689448902c3befdfbe53d9c;p=thirdparty%2FAWStats.git Fixed: [ 1186582 ] Authentication problem in Windows NT/AD Domains --- diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index 4f926ae6..980ff5db 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -5796,8 +5796,9 @@ if ($AllowAccessFromWebToAuthenticatedUsersOnly && $ENV{'GATEWAY_INTERFACE'}) { } if (@AllowAccessFromWebToFollowingAuthenticatedUsers) { my $userisinlist=0; - my $currentuser=qr/^$ENV{"REMOTE_USER"}$/i; - $currentuser =~ s/\s/%20/g; # Allow authenticated user with space in name to be compared to allowed user list + my $remoteuser=quotemeta($ENV{"REMOTE_USER"}); + $remoteuser =~ s/\s/%20/g; # Allow authenticated user with space in name to be compared to allowed user list + my $currentuser=qr/^$remoteuser$/i; # Set precompiled regex foreach (@AllowAccessFromWebToFollowingAuthenticatedUsers) { if (/$currentuser/o) { $userisinlist=1; last; } }