From 6e38a22283abae22206d861d0574e497663fa60d Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Fri, 18 Jul 2008 17:42:52 +0000 Subject: [PATCH] patch #2020630 [export] Safari and timedate --- ChangeLog | 2 ++ export.php | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2e8dd8e5c..f5e6ba3d4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -89,6 +89,8 @@ danbarry - bug [history] Do not save too big queries in history - [security] Do not show version info on login screen - bug #2018595 [import] Potential data loss on import resubmit +- patch #2020630 [export] Safari and timedate, thanks to Sebastian Mendel, + Isaac Bennetch and Jürgen Wind 2.11.7.1 (2008-07-15) - bug [security] XSRF/CSRF by manipulating the db, diff --git a/export.php b/export.php index 0c7b5aa84..51bdeca60 100644 --- a/export.php +++ b/export.php @@ -362,6 +362,11 @@ if (!$save_on_server) { header('Pragma: public'); } else { header('Pragma: no-cache'); + // test case: exporting a database into a .gz file with Safari + // would produce files not having the current time + if ('SAFARI' == PMA_USR_BROWSER_AGENT) { + header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + } } } else { // HTML