From: Dmitry Stogov Date: Fri, 8 Sep 2006 05:52:00 +0000 (+0000) Subject: Prevent opening of empty filename "" X-Git-Tag: php-5.2.0RC4~70 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b0c41509676fbf2a694573813bae5ac104def68d;p=php Prevent opening of empty filename "" --- diff --git a/ext/com_dotnet/com_extension.c b/ext/com_dotnet/com_extension.c index 3c73ec594e..56526805ac 100644 --- a/ext/com_dotnet/com_extension.c +++ b/ext/com_dotnet/com_extension.c @@ -115,7 +115,7 @@ static PHP_INI_MH(OnTypeLibFileUpdate) 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; }