Browse Source

PR#22672 - User not logged under Apache2

patch provided by Andrew Bradford.
migration/unlabaled-1.3.2
Ian Holsman 24 years ago
parent
commit
2697be632c
  1. 1
      sapi/apache2handler/sapi_apache2.c

1
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;

Loading…
Cancel
Save