to letting stuff through if no safemode include dir was defined.
@ Another safe-mode fix related to the safemode incdir feature (Rasmus)
char *end;
char resolved_name[MAXPATHLEN];
+ php_printf("safe_mode_include_dir check for %s<br>\n",path);
+
/* Resolve the real path into resolved_name */
if (expand_filepath(path, resolved_name TSRMLS_CC) == NULL)
return -1;
}
/* Nothing to check... */
- return 0;
+ return -1;
}
/* }}} */
}
filename_length = strlen(filename);
-
+
/* Relative path open */
if (*filename == '.') {
if (PG(safe_mode) && (!php_checkuid(filename, mode, CHECKUID_CHECK_MODE_PARAM))) {