Skip to content

Instantly share code, notes, and snippets.

@torunar
Created January 14, 2019 06:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torunar/c1bc04034d1d48dff01156c43db7814a to your computer and use it in GitHub Desktop.
Save torunar/c1bc04034d1d48dff01156c43db7814a to your computer and use it in GitHub Desktop.
diff --git a/app/controllers/backend/exim.php b/app/controllers/backend/exim.php
index 42411f99af..60f42acd4a 100644
--- a/app/controllers/backend/exim.php
+++ b/app/controllers/backend/exim.php
@@ -108,11 +108,11 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
// Direct download
if ($_REQUEST['export_options']['output'] == 'D') {
- $url = fn_url("exim.get_file?filename=" . rawurlencode($_REQUEST['export_options']['filename']), 'A', 'current');
+ $url = fn_url("exim.get_file?time=" . TIME . "&filename=" . rawurlencode($_REQUEST['export_options']['filename']), 'A', 'current');
// Output to screen
} elseif ($_REQUEST['export_options']['output'] == 'C') {
- $url = fn_url("exim.get_file?to_screen=Y&filename=" . rawurlencode($_REQUEST['export_options']['filename']), 'A', 'current');
+ $url = fn_url("exim.get_file?time=" . TIME . "&to_screen=Y&filename=" . rawurlencode($_REQUEST['export_options']['filename']), 'A', 'current');
}
if (defined('AJAX_REQUEST') && !empty($url)) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment