]> granicus.if.org Git - php/commitdiff
Fixed bug #29805 (HTTP Authentication Issues)
authorUwe Schindler <thetaphi@php.net>
Wed, 15 Sep 2004 21:28:30 +0000 (21:28 +0000)
committerUwe Schindler <thetaphi@php.net>
Wed, 15 Sep 2004 21:28:30 +0000 (21:28 +0000)
sapi/nsapi/nsapi.c

index 84a3c1bfaa6ac83a58fed01f8f10bcf05fbc730c..d68bd321b52224f9276c594fabebd74c1b73f789 100644 (file)
@@ -932,6 +932,8 @@ int NSAPI_PUBLIC php5_execute(pblock *pb, Session *sn, Request *rq)
        SG(request_info).content_type = nsapi_strdup(content_type);
        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);