cvs: php4 /sapi/pi3web pi3web_sapi.c
| From: | Holger Zimmermann | Date: | Sat, 21 Jul 2001 12:23:23 +0000 |
| Subject: | cvs: php4 /sapi/pi3web pi3web_sapi.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-6302@lists.php.net to get a copy of this message | ||
holger Sat Jul 21 08:23:23 2001 EDT
Modified files:
/php4/sapi/pi3web pi3web_sapi.c
Log:
Updated
Index: php4/sapi/pi3web/pi3web_sapi.c
diff -u php4/sapi/pi3web/pi3web_sapi.c:1.20 php4/sapi/pi3web/pi3web_sapi.c:1.21
--- php4/sapi/pi3web/pi3web_sapi.c:1.20 Fri Jul 20 18:11:13 2001
+++ php4/sapi/pi3web/pi3web_sapi.c Sat Jul 21 08:23:23 2001
@@ -21,7 +21,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pi3web_sapi.c,v 1.20 2001/07/20 22:11:13 holger Exp $ */
+/* $Id: pi3web_sapi.c,v 1.21 2001/07/21 12:23:23 holger Exp $ */
#include "pi3web_sapi.h"
#include "php.h"
@@ -78,7 +78,7 @@
PUTS("<table border=0 cellpadding=3 cellspacing=1 width=600 align=center>\n");
PUTS("<tr><th colspan=2 bgcolor=\"" PHP_HEADER_COLOR
"\">Pi3Web Server Information</th></tr>\n");
php_info_print_table_header(2, "Information Field", "Value");
- php_info_print_table_row(2, "Pi3Web SAPI module version", "$Id: pi3web_sapi.c,v
1.20 2001/07/20 22:11:13 holger Exp $");
+ php_info_print_table_row(2, "Pi3Web SAPI module version", "$Id: pi3web_sapi.c,v
1.21 2001/07/21 12:23:23 holger Exp $");
php_info_print_table_row(2, "Server Name Stamp", HTTPCore_getServerStamp());
snprintf(variable_buf, 511, "%d", HTTPCore_debugEnabled());
php_info_print_table_row(2, "Debug Enabled", variable_buf);
@@ -315,8 +315,8 @@
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;
}