cvs: php4(PHP_4_3) /ext/standard filestat.c
| From: | Ilia Alshanetsky | Date: | Thu, 27 Feb 2003 16:41:44 +0000 |
| Subject: | cvs: php4(PHP_4_3) /ext/standard filestat.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-19236@lists.php.net to get a copy of this message | ||
iliaa Thu Feb 27 11:41:44 2003 EDT
Modified files: (Branch: PHP_4_3)
/php4/ext/standard filestat.c
Log:
MFH
Index: php4/ext/standard/filestat.c
diff -u php4/ext/standard/filestat.c:1.112.2.3 php4/ext/standard/filestat.c:1.112.2.4
--- php4/ext/standard/filestat.c:1.112.2.3 Thu Jan 9 17:29:02 2003
+++ php4/ext/standard/filestat.c Thu Feb 27 11:41:44 2003
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: filestat.c,v 1.112.2.3 2003/01/09 22:29:02 pollita Exp $ */
+/* $Id: filestat.c,v 1.112.2.4 2003/02/27 16:41:44 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;