Basic auth can have characters after the word "Basic"
This commit is contained in:
parent
368ef7d411
commit
ef5eba0947
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue