When using HTTP auth from PHP, fill in the %u custom log field so the

authenticated used id will get logged in the Apache access_log
@- When using HTTP auth from PHP, fill in the %u custom log field so the
@  authenticated used id will get logged in the Apache access_log (Rasmus)
This commit is contained in:
Rasmus Lerdorf 2000-07-05 18:02:42 +00:00
parent 057264d6ed
commit f2348a4826

View File

@ -399,6 +399,8 @@ static void init_request_info(SLS_D)
tmp = uudecode(r->pool, authorization);
SG(request_info).auth_user = getword_nulls_nc(r->pool, &tmp, ':');
if (SG(request_info).auth_user) {
r->connection->user = pstrdup(r->connection->pool,SG(request_info).auth_user);
r->connection->ap_auth_type = "Basic";
SG(request_info).auth_user = estrdup(SG(request_info).auth_user);
}
SG(request_info).auth_password = tmp;