Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Delisle <marc@infomarc.info>2006-03-10 16:44:49 +0300
committerMarc Delisle <marc@infomarc.info>2006-03-10 16:44:49 +0300
commit50dc7744ed8edc117dd6760a30811972b1cc9685 (patch)
treeb1e61144c38d7bc6d02f293ab7e2df93cdc35eb8 /transformation_wrapper.php
parent6b1fbf7a24ee1c5550d037a74a7ec81e9583c889 (diff)
bug #1444121, octetstream download
Diffstat (limited to 'transformation_wrapper.php')
-rw-r--r--transformation_wrapper.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/transformation_wrapper.php b/transformation_wrapper.php
index da1325a358..7e6bafe0da 100644
--- a/transformation_wrapper.php
+++ b/transformation_wrapper.php
@@ -60,13 +60,12 @@ if (isset($ct) && !empty($ct)) {
} else {
$content_type = 'Content-Type: ' . (isset($mime_map[urldecode($transform_key)]['mimetype']) ? str_replace('_', '/', $mime_map[urldecode($transform_key)]['mimetype']) : $default_ct) . (isset($mime_options['charset']) ? $mime_options['charset'] : '');
}
+header($content_type);
if (isset($cn) && !empty($cn)) {
- $content_type .= "\n" . 'Content-Disposition: attachment; filename=' . urldecode($cn);
+ header('Content-Disposition: attachment; filename=' . urldecode($cn));
}
-header($content_type);
-
if (!isset($resize)) {
echo $row[urldecode($transform_key)];
} else {