From 4b8371990786de268274d3b970827abc4b7f443c Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 9 Mar 2012 12:39:39 +0000 Subject: [PATCH] fixed "Save as" / forced download for known mime-types --- filemanager/inc/class.filemanager_ui.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/filemanager/inc/class.filemanager_ui.inc.php b/filemanager/inc/class.filemanager_ui.inc.php index d07cacdf3c..3ce4a216b7 100644 --- a/filemanager/inc/class.filemanager_ui.inc.php +++ b/filemanager/inc/class.filemanager_ui.inc.php @@ -515,6 +515,10 @@ function force_download(_action, _senders) { var a_href = $j(_senders[0].iface.getDOMNode()).find("a:first").attr("href"); + if (a_href.indexOf("menuaction=") != -1) + { + a_href = a_href.replace(/index.php?.*$/, "webdav.php"+_senders[0].id); + } window.location = a_href+"?download"; } '."\n";