aboutsummaryrefslogtreecommitdiffstats
path: root/action.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--action.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/action.php b/action.php
index 99f370b41..37120c82f 100644
--- a/action.php
+++ b/action.php
@@ -177,8 +177,7 @@ $http_headers[] = 'Content-Type: '.$ctype;
if (!isset($_GET['view']))
{
- $http_headers[] = 'Content-Disposition: attachment; filename="'
- .basename($file).'";';
+ $http_headers[] = 'Content-Disposition: attachment; filename="'.$element_info['file'].'";';
$http_headers[] = 'Content-Transfer-Encoding: binary';
}
else