]> granicus.if.org Git - php/commitdiff
- Fixed bug #45568 (ISAPI does not property clear auth_digest in header).
authorJani Taskinen <jani@php.net>
Thu, 31 Jul 2008 00:48:32 +0000 (00:48 +0000)
committerJani Taskinen <jani@php.net>
Thu, 31 Jul 2008 00:48:32 +0000 (00:48 +0000)
sapi/isapi/php5isapi.c

index 959d85f48d45f48214b53cfae1619c0a1965b12f..52ff1a32b60775cbf9f5fdb655c8028b28474338 100644 (file)
@@ -712,6 +712,7 @@ DWORD WINAPI HttpFilterProc(PHTTP_FILTER_CONTEXT pfc, DWORD notificationType, LP
                case SF_NOTIFY_PREPROC_HEADERS:
                        SG(request_info).auth_user = NULL;
                        SG(request_info).auth_password = NULL;
+                       SG(request_info).auth_digest = NULL;
                        break;
                case SF_NOTIFY_AUTHENTICATION: {
                                char *auth_user = ((HTTP_FILTER_AUTHENT *) pvNotification)->pszUser;
@@ -746,7 +747,7 @@ static void init_request_info(LPEXTENSION_CONTROL_BLOCK lpECB TSRMLS_DC)
        SG(request_info).content_length = lpECB->cbTotalBytes;
        SG(sapi_headers).http_response_code = 200;  /* I think dwHttpStatusCode is invalid at this stage -RL */
        if (!bFilterLoaded) { /* we don't have valid ISAPI Filter information */
-               SG(request_info).auth_user = SG(request_info).auth_password = NULL;
+               SG(request_info).auth_user = SG(request_info).auth_password = SG(request_info).auth_digest = NULL;
        }
 
 #ifdef WITH_ZEUS