patch #3430291 [import] Handle conflicts in some open_basedir situations
This commit is contained in:

committed by
Marc Delisle

parent
8170d03d3c
commit
8721f7b160
@@ -259,7 +259,7 @@ if ($import_file != 'none' && !$error) {
|
||||
if (is_writable($tmp_subdir)) {
|
||||
|
||||
|
||||
$import_file_new = $tmp_subdir . basename($import_file);
|
||||
$import_file_new = $tmp_subdir . basename($import_file) . uniqid();
|
||||
if (move_uploaded_file($import_file, $import_file_new)) {
|
||||
$import_file = $import_file_new;
|
||||
$file_to_unlink = $import_file_new;
|
||||
|
Reference in New Issue
Block a user