summaryrefslogtreecommitdiff
path: root/lib/exe/xmlrpc.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2008-12-02 22:03:22 +0100
committerAndreas Gohr <andi@splitbrain.org>2008-12-02 22:03:22 +0100
commitecebf3a8627f527cbd184b7907dd91f65764617b (patch)
treeb8cc9e688deccab5f9b3a78258f666ecc624c4c5 /lib/exe/xmlrpc.php
parent02a002e903ab4b1afa2e1c3d7c2b3e44d77783fa (diff)
downloadrpg-ecebf3a8627f527cbd184b7907dd91f65764617b.tar.gz
rpg-ecebf3a8627f527cbd184b7907dd91f65764617b.tar.bz2
Make content-disposition configurable in mime.conf FS#1541
With this patch it is possible to define if a file should be served as download or be displayed inside the browser (if supported) by configuring it in conf/mime.conf Mimetypes that should be served with a "Content-Disposition: attachment" header need to be prefixed with a exclamation mark. All others will be served inline. This will also fix a Problem with Flash 10. darcs-hash:20081202210322-7ad00-6e7ef30aff9322cd135311be77809187da121f3b.gz
Diffstat (limited to 'lib/exe/xmlrpc.php')
-rw-r--r--lib/exe/xmlrpc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/exe/xmlrpc.php b/lib/exe/xmlrpc.php
index c2805cb01..97e473d7e 100644
--- a/lib/exe/xmlrpc.php
+++ b/lib/exe/xmlrpc.php
@@ -452,7 +452,7 @@ class dokuwiki_xmlrpc_server extends IXR_IntrospectionServer {
io_saveFile($ftmp, $buff);
// get filename
- list($iext, $imime) = mimetype($id);
+ list($iext, $imime,$dl) = mimetype($id);
$id = cleanID($id);
$fn = mediaFN($id);