From: Holger Zimmermann Date: Sat, 21 Jul 2001 12:23:23 +0000 (+0000) Subject: Updated X-Git-Tag: PRE_TSRM_MERGE_PATCH~47 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7213492b3a6b9271ac74d25b4e30f31499959618;p=php Updated --- diff --git a/sapi/pi3web/pi3web_sapi.c b/sapi/pi3web/pi3web_sapi.c index 443fcf88bb..eef6920506 100644 --- a/sapi/pi3web/pi3web_sapi.c +++ b/sapi/pi3web/pi3web_sapi.c @@ -315,8 +315,8 @@ static void init_request_info(sapi_globals_struct *sapi_globals, LPCONTROL_BLOCK SG(request_info).request_uri = lpCB->lpszUri; SG(request_info).content_type = lpCB->lpszContentType; SG(request_info).content_length = lpCB->cbTotalBytes; - SG(request_info).auth_user = lpCB->lpszUser; - SG(request_info).auth_password = lpCB->lpszPassword; + SG(request_info).auth_user = (lpCB->lpszUser) ? (char *)estrdup((const char *)(lpCB->lpszUser)) : 0; + SG(request_info).auth_password = (lpCB->lpszPassword) ? (char *)estrdup((const char *)(lpCB->lpszPassword)) : 0; SG(sapi_headers).http_response_code = 200; }