mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02: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
1 changed files with 2 additions and 0 deletions
|
@ -399,6 +399,8 @@ static void init_request_info(SLS_D)
|
||||||
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, ':');
|
||||||
if (SG(request_info).auth_user) {
|
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_user = estrdup(SG(request_info).auth_user);
|
||||||
}
|
}
|
||||||
SG(request_info).auth_password = tmp;
|
SG(request_info).auth_password = tmp;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue