Re: cvs: php4 /sapi/apache2handler sapi_apache2.c
| From: | Derick Rethans | Date: | Tue, 18 Mar 2003 13:52:53 +0000 |
| Subject: | Re: cvs: php4 /sapi/apache2handler sapi_apache2.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-19659@lists.php.net to get a copy of this message | ||
On Mon, 17 Mar 2003, Ian Holsman wrote:
> ianh Mon Mar 17 16:28:41 2003 EDT
>
> Modified files:
> /php4/sapi/apache2handler sapi_apache2.c
> Log:
> PR#22672 - User not logged under Apache2
> patch provided by Andrew Bradford.
>
> -/* $Id: sapi_apache2.c,v 1.5 2003/03/07 13:45:33 iliaa Exp $ */
> +/* $Id: sapi_apache2.c,v 1.6 2003/03/17 21:28:41 ianh Exp $ */
>
> #include <fcntl.h>
>
> @@ -429,6 +429,7 @@
> 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 {
Please fix the indentation, we use tabs.
Derick
--
"my other box is your windows PC"
-------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
PHP Magazine - PHP Magazine for Professionals http://php-mag.net/
-------------------------------------------------------------------------