summaryrefslogtreecommitdiff
path: root/sapi/apache2handler
diff options
context:
space:
mode:
authorIan Holsman <ianh@php.net>2003-03-17 21:28:41 +0000
committerIan Holsman <ianh@php.net>2003-03-17 21:28:41 +0000
commit2697be632c1e34b7885986ce4b5a85119b4f437f (patch)
tree26717f702c7067e3c033cd93217c0e3d1bb41653 /sapi/apache2handler
parent27a7eaf4e7a10a7ac88263c85539a4d73fc24ffb (diff)
downloadphp-git-2697be632c1e34b7885986ce4b5a85119b4f437f.tar.gz
PR#22672 - User not logged under Apache2
patch provided by Andrew Bradford.
Diffstat (limited to 'sapi/apache2handler')
-rw-r--r--sapi/apache2handler/sapi_apache2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sapi/apache2handler/sapi_apache2.c b/sapi/apache2handler/sapi_apache2.c
index 77cd1e5f9e..c8e8e10718 100644
--- a/sapi/apache2handler/sapi_apache2.c
+++ b/sapi/apache2handler/sapi_apache2.c
@@ -429,6 +429,7 @@ static void php_apache_request_ctor(request_rec *r, php_struct *ctx TSRMLS_DC)
if (!PG(safe_mode)) {
auth = apr_table_get(r->headers_in, "Authorization");
php_handle_auth_data(auth TSRMLS_CC);
+ ctx->r->user = apr_pstrdup(ctx->r->pool, SG(request_info).auth_user);
} else {
SG(request_info).auth_user = NULL;
SG(request_info).auth_password = NULL;