mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
MFB: -r1.100.2.3.2.5
This commit is contained in:
parent
af83e1cad2
commit
197b51e796
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue