MFB: -r1.100.2.3.2.5

This commit is contained in:
Jani Taskinen 2007-08-23 13:09:27 +00:00
parent af83e1cad2
commit 197b51e796

View file

@ -278,10 +278,12 @@ PS_OPEN_FUNC(files)
/* if save path is an empty string, determine the temporary dir */
save_path = php_get_temporary_directory();
if (strcmp(save_path, "/tmp")) {
if (php_check_open_basedir(save_path TSRMLS_CC)) {
return FAILURE;
}
}
}
/* split up input parameter */
last = save_path;