summaryrefslogtreecommitdiff
path: root/lib/exe/fetch.php
diff options
context:
space:
mode:
authorGerry Weißbach <gerry.w@gammaproduction.de>2014-01-27 10:08:48 +0100
committerGerry Weißbach <gerry.w@gammaproduction.de>2014-01-27 10:08:48 +0100
commitd2affc245d260133a8e9734ad309e5ceba8f42b6 (patch)
tree93ef26042e1a2bf9a342de49821cafac68931562 /lib/exe/fetch.php
parent32c584aadfbf4d297dbea400e69a0255614ff542 (diff)
downloadrpg-d2affc245d260133a8e9734ad309e5ceba8f42b6.tar.gz
rpg-d2affc245d260133a8e9734ad309e5ceba8f42b6.tar.bz2
Use original filename for Content-Disposition
In most cases this change will have no effect, but noes the response will use the filename that was originally requested. The downloaded filename can be modified to something different as well. E.g. the siteexport plugin will make use of it.
Diffstat (limited to 'lib/exe/fetch.php')
-rw-r--r--lib/exe/fetch.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/exe/fetch.php b/lib/exe/fetch.php
index f33b3f2f8..16426938f 100644
--- a/lib/exe/fetch.php
+++ b/lib/exe/fetch.php
@@ -89,7 +89,7 @@ if (defined('SIMPLE_TEST')) {
// finally send the file to the client
$evt = new Doku_Event('MEDIA_SENDFILE', $data);
if($evt->advise_before()) {
- sendFile($data['file'], $data['mime'], $data['download'], $data['cache'], $data['ispublic']);
+ sendFile($data['file'], $data['orig'], $data['mime'], $data['download'], $data['cache'], $data['ispublic']);
}
// Do something after the download finished.
$evt->advise_after(); // will not be emitted on 304 or x-sendfile