Skip to content

Commit a31dc18

Browse files
author
Jani Taskinen
committed
MFH:- Fixed bug #45568 (ISAPI does not property clear auth_digest in header).
1 parent 4b8197c commit a31dc18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sapi/isapi/php5isapi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,7 @@ DWORD WINAPI HttpFilterProc(PHTTP_FILTER_CONTEXT pfc, DWORD notificationType, LP
712712
case SF_NOTIFY_PREPROC_HEADERS:
713713
SG(request_info).auth_user = NULL;
714714
SG(request_info).auth_password = NULL;
715+
SG(request_info).auth_digest = NULL;
715716
break;
716717
case SF_NOTIFY_AUTHENTICATION: {
717718
char *auth_user = ((HTTP_FILTER_AUTHENT *) pvNotification)->pszUser;
@@ -746,7 +747,7 @@ static void init_request_info(LPEXTENSION_CONTROL_BLOCK lpECB TSRMLS_DC)
746747
SG(request_info).content_length = lpECB->cbTotalBytes;
747748
SG(sapi_headers).http_response_code = 200; /* I think dwHttpStatusCode is invalid at this stage -RL */
748749
if (!bFilterLoaded) { /* we don't have valid ISAPI Filter information */
749-
SG(request_info).auth_user = SG(request_info).auth_password = NULL;
750+
SG(request_info).auth_user = SG(request_info).auth_password = SG(request_info).auth_digest = NULL;
750751
}
751752

752753
#ifdef WITH_ZEUS

0 commit comments

Comments
 (0)