Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: 1.9.3
-
Fix Version/s: None
-
Component/s: Gradebook
-
Labels:None
-
Environment:Debian Linux, WatchGuard firewall
-
Database:MySQL
-
Affected Branches:MOODLE_19_STABLE
Description
In a number of places in the Moodle codebase there is use of the "application/download" pseudo-MIME content type. This invalid type is blocked by our corporate firewall, preventing various exports and downloads from Moodle. At a minimum, the content type should be changed to the valid "application/octet-stream". Ideally, it should be set depending on the file type. For example, text/plain for textual export, application/xml for XML, etc. The use of the "Content-Disposition" HTTP response header should be sufficient to trigger most browsers to download the file. Those that don't aren't worth supporting.
Unfortunately we need to send as bad headers as possible in order to prevent XSS from student uploaded files, sorry - this can not be changed.
Only Firefox does what it is told to do