Browse Source

all functions based on php_stat are now safe mode aware...

experimental/new_apache_hooks
Stefan Esser 24 years ago
parent
commit
02e6cd022a
  1. 4
      ext/standard/filestat.c

4
ext/standard/filestat.c

@ -553,6 +553,10 @@ static void php_stat(const char *filename, php_stat_len filename_length, int typ
char *stat_sb_names[13]={"dev", "ino", "mode", "nlink", "uid", "gid", "rdev",
"size", "atime", "mtime", "ctime", "blksize", "blocks"};
if (PG(safe_mode) &&(!php_checkuid(filename, NULL, CHECKUID_CHECK_FILE_AND_DIR))) {
RETURN_FALSE;
}
if (php_check_open_basedir(filename TSRMLS_CC)) {
RETURN_FALSE;
}

Loading…
Cancel
Save