From: skodak Date: Sun, 21 Sep 2008 10:32:30 +0000 (+0000) Subject: MDL-16596 always force download of draft files - this prevents problems when editing... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ac84a07da8bbb8a18861feba8f48ed79997f4ce8;p=moodle.git MDL-16596 always force download of draft files - this prevents problems when editing area with file suploaded by otehr users --- diff --git a/draftfile.php b/draftfile.php index 7ff20c380e..2276e34a33 100644 --- a/draftfile.php +++ b/draftfile.php @@ -12,7 +12,6 @@ disable_debugging(); $relativepath = get_file_argument('draftfile.php'); - $forcedownload = optional_param('forcedownload', 0, PARAM_BOOL); // relative path must start with '/' if (!$relativepath) { @@ -64,4 +63,4 @@ // finally send the file // ======================================== session_write_close(); // unlock session during fileserving - send_stored_file($file, 0, false, $forcedownload); + send_stored_file($file, 0, false, true); // force download - security first!