Basic auth can have characters after the word "Basic"

This commit is contained in:
Arjan Widlak 2009-05-28 17:09:01 +00:00
parent 368ef7d411
commit ef5eba0947

View file

@ -171,9 +171,9 @@ sub handler {
# Get the type of authorization required for this request (the per
# directory configuration directive AuthType):
my $auth = $request->auth_type;
if ($auth eq "Basic") { # machine oriented
# Get username and password from Apache and hand over to authen, Basic
# Auth for WebGUI
if ($auth =~ m/^Basic/) { # machine oriented
# Get username and password from Apache and hand over to authen
my $basicAuthUser = $request->get_remote_logname;
my $basicAuthPass = $request->get_basic_auth_pw;
authen($request, $basicAuthUser, $basicAuthPass, $config);