dmitry Fri Sep 8 05:52:16 2006 UTC
Modified files:
/php-src/ext/com_dotnet com_extension.c
Log:
Prevent opening of empty filename ""
http://cvs.php.net/viewvc.cgi/php-src/ext/com_dotnet/com_extension.c?r1=1.21&r2=1.22&diff_format=u
Index: php-src/ext/com_dotnet/com_extension.c
diff -u php-src/ext/com_dotnet/com_extension.c:1.21
php-src/ext/com_dotnet/com_extension.c:1.22
--- php-src/ext/com_dotnet/com_extension.c:1.21 Tue Jun 13 13:12:18 2006
+++ php-src/ext/com_dotnet/com_extension.c Fri Sep 8 05:52:15 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: com_extension.c,v 1.21 2006/06/13 13:12:18 dmitry Exp $ */
+/* $Id: com_extension.c,v 1.22 2006/09/08 05:52:15 dmitry Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -115,7 +115,7 @@
char *strtok_buf = NULL;
int cached;
- if (!new_value || (typelib_file = VCWD_FOPEN(new_value, "r"))==NULL) {
+ if (!new_value || !new_value[0] || (typelib_file =
VCWD_FOPEN(new_value, "r"))==NULL) {
return FAILURE;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php