From afb393816dd2fcc8b1ddb402d644d8cbafe6e157 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 8 Sep 2013 07:16:59 -0400 Subject: [PATCH] bug #4080 Overwrite existing file not obeyed --- ChangeLog | 3 ++- export.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c28a6058f5..a7aeff64d4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,7 +3,8 @@ phpMyAdmin - ChangeLog 4.0.7.0 (not yet released) - bug #3993 Sorting in database overview with statistics doesn't work -- bug Handle the situation where PHP_SELF is not set +- bug Handle the situation where PHP_SELF is not set +- bug #4080 Overwrite existing file not obeyed 4.0.6.0 (2013-09-05) - bug #4036 Call to undefined function mb_detect_encoding (clarify the doc) diff --git a/export.php b/export.php index 065c0fbbd3..937478c683 100644 --- a/export.php +++ b/export.php @@ -502,7 +502,7 @@ if ($save_on_server) { . preg_replace('@[/\\\\]@', '_', $filename); unset($message); if (file_exists($save_filename) - && ((! $quick_export && empty($onserverover)) + && ((! $quick_export && empty($_REQUEST['onserverover'])) || ($quick_export && $_REQUEST['quick_export_onserverover'] != 'saveitover')) ) {