summaryrefslogtreecommitdiff
path: root/lib/exe
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2014-02-02 11:45:29 -0800
committerAndreas Gohr <andi@splitbrain.org>2014-02-02 11:45:29 -0800
commitc67778ecfe740d58c893edeaca1a764b62b63208 (patch)
treeabe9f854f22e5778579dc4e368eb924c5bd1dda2 /lib/exe
parent9585623da6462d613fea9809128d1153adfe573d (diff)
parent2fd6745d5fd3a6b5b4b5a0a1952826095e35dac7 (diff)
downloadrpg-c67778ecfe740d58c893edeaca1a764b62b63208.tar.gz
rpg-c67778ecfe740d58c893edeaca1a764b62b63208.tar.bz2
Merge pull request #517 from gamma/master
Add the original filename to sendFile for Content-Disposition
Diffstat (limited to 'lib/exe')
-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..5f82ad0e0 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['mime'], $data['download'], $data['cache'], $data['ispublic'], $data['orig']);
}
// Do something after the download finished.
$evt->advise_after(); // will not be emitted on 304 or x-sendfile