iliaa Thu Feb 27 11:41:24 2003 EDT
Modified files:
/php4/ext/standard filestat.c
Log:
Fixed bug #21410 (fixed handling of NULL or "" files on Win32)
Index: php4/ext/standard/filestat.c
diff -u php4/ext/standard/filestat.c:1.119 php4/ext/standard/filestat.c:1.120
--- php4/ext/standard/filestat.c:1.119 Sat Feb 8 22:49:41 2003
+++ php4/ext/standard/filestat.c Thu Feb 27 11:41:23 2003
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: filestat.c,v 1.119 2003/02/09 03:49:41 shane Exp $ */
+/* $Id: filestat.c,v 1.120 2003/02/27 16:41:23 iliaa Exp $ */
#include "php.h"
#include "safe_mode.h"
@@ -563,6 +563,10 @@
int rmask=S_IROTH, wmask=S_IWOTH, xmask=S_IXOTH; /* access rights defaults to
other */
char *stat_sb_names[13]={"dev", "ino", "mode", "nlink", "uid", "gid", "rdev",
"size", "atime", "mtime", "ctime", "blksize", "blocks"};
+
+ if (!filename_length) {
+ RETURN_FALSE;
+ }
if (PG(safe_mode) &&(!php_checkuid_ex(filename, NULL,
CHECKUID_CHECK_FILE_AND_DIR, IS_EXISTS_CHECK(type) ? CHECKUID_NO_ERRORS : 0))) {
RETURN_FALSE;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php