From 8721f7b1601295186f4b9df5dee285911c8aaaf7 Mon Sep 17 00:00:00 2001 From: Gabor Gyorvari Date: Sat, 5 Nov 2011 10:33:19 -0400 Subject: [PATCH] patch #3430291 [import] Handle conflicts in some open_basedir situations --- ChangeLog | 1 + import.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 87877da26..f89acb6bb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,7 @@ phpMyAdmin - ChangeLog - bug #3426836 [interface] Visual column separation - bug #3428065 [parser] TRUE not recognized by parser + patch #3433770 [config] Make location of php-gettext configurable +- patch #3430291 [import] Handle conflicts in some open_basedir situations 3.4.7.0 (2011-10-23) - bug #3418610 [interface] Links in navigation when $cfg['MainPageIconic'] = false diff --git a/import.php b/import.php index d706b6055..07e5d1803 100644 --- a/import.php +++ b/import.php @@ -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;