From: Uwe Schindler Date: Wed, 15 Sep 2004 21:25:31 +0000 (+0000) Subject: Fixed bug #29805 (HTTP Authentication Issues) X-Git-Tag: php-4.3.9~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4fdd5249fb8b780c17892adccfe0ceaa13668724;p=php Fixed bug #29805 (HTTP Authentication Issues) --- diff --git a/NEWS b/NEWS index 04975a74c6..618375973f 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,7 @@ PHP 4 NEWS exhaustion. (Andrei) - Fixed bug with raw_post_data not getting set (Brian) - Fixed a file-descriptor leak with phpinfo() and other 'special' URLs (Zeev) +- Fixed bug #29805 (HTTP Authentication Issues). (Uwe Schindler) - Fixed bug #29753 (mcal_fetch_event() allows 2nd argument to be optional). (Ilia, Vrana) - Fixed bug #29727 (Added missing CURL authentication directives). (Ilia) diff --git a/sapi/nsapi/nsapi.c b/sapi/nsapi/nsapi.c index 870a386bac..a57e226d9f 100644 --- a/sapi/nsapi/nsapi.c +++ b/sapi/nsapi/nsapi.c @@ -933,6 +933,8 @@ int NSAPI_PUBLIC php4_execute(pblock *pb, Session *sn, Request *rq) SG(request_info).content_length = (content_length == NULL) ? 0 : strtoul(content_length, 0, 0); SG(sapi_headers).http_response_code = (error_directive) ? rq->status_num : 200; + if (!PG(safe_mode)) php_handle_auth_data(pblock_findval("authorization", rq->headers) TSRMLS_CC); + nsapi_php_ini_entries(NSLS_C TSRMLS_CC); file_handle.type = ZEND_HANDLE_FILENAME;