]> granicus.if.org Git - php/commitdiff
MFH: Fix for bug #22672
authorfoobar <sniper@php.net>
Tue, 18 Mar 2003 01:24:57 +0000 (01:24 +0000)
committerfoobar <sniper@php.net>
Tue, 18 Mar 2003 01:24:57 +0000 (01:24 +0000)
sapi/apache2handler/sapi_apache2.c

index 77cd1e5f9e00c355be0a352a3f1b50a900303106..7d5148149df50bb7f0c6ab44ac393aa79bcf1aa1 100644 (file)
@@ -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;