mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
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:
parent
057264d6ed
commit
f2348a4826
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user