diff options
author | Michal Čihař <mcihar@suse.cz> | 2011-08-04 16:27:44 +0400 |
---|---|---|
committer | Michal Čihař <mcihar@suse.cz> | 2011-08-04 16:27:44 +0400 |
commit | eeb54e007b4d51269e6d3a31578bb92ac5bae21c (patch) | |
tree | 4b09468b3991612fc7c2d7bc9037f085bd4dbe8a /tbl_get_field.php | |
parent | 045f59c78a7aa74efa002b17044996309d93d41d (diff) |
Use new function for download headers
Diffstat (limited to 'tbl_get_field.php')
-rw-r--r-- | tbl_get_field.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tbl_get_field.php b/tbl_get_field.php index a58eb5117b..4d4540beb5 100644 --- a/tbl_get_field.php +++ b/tbl_get_field.php @@ -37,9 +37,7 @@ if ($result === false) { /* Avoid corrupting data */ @ini_set('url_rewriter.tags', ''); -header('Content-Type: ' . PMA_detectMIME($result)); -header('Expires: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header('Content-Disposition: attachment; filename="' . $table . '-' . $transform_key . '.bin"'); +PMA_download_header($table . '-' . $transform_key . '.bin', PMA_detectMIME($result)); if (PMA_USR_BROWSER_AGENT == 'IE') { header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Pragma: public'); |