@- Fixed bug with Apache which let PHP_AUTH_* variables to be set when

@  external basic auth mechanism was used. (Jani)

Fixes bugs: #16653, #14534, #14370
This commit is contained in:
foobar 2002-06-13 22:13:57 +00:00
parent 6189dac445
commit f9e492d00b

View file

@ -403,7 +403,7 @@ static void init_request_info(TSRMLS_D)
authorization = table_get(r->headers_in, "Authorization"); authorization = table_get(r->headers_in, "Authorization");
} }
if (authorization if (authorization
/* && !auth_type(r) */ && !auth_type(r)
&& !strcasecmp(getword(r->pool, &authorization, ' '), "Basic")) { && !strcasecmp(getword(r->pool, &authorization, ' '), "Basic")) {
tmp = uudecode(r->pool, authorization); tmp = uudecode(r->pool, authorization);
SG(request_info).auth_user = getword_nulls_nc(r->pool, &tmp, ':'); SG(request_info).auth_user = getword_nulls_nc(r->pool, &tmp, ':');