Commit 4c2801d3 authored by Carsten  Rose's avatar Carsten Rose
Browse files

#4303: add some PHP comment.

parent 02bf1183
......@@ -150,6 +150,9 @@ class Download {
$rcMimetype = mime_content_type($filename);
// See #4303 / Bug: Download von doc/docx-Dateien - the following approach makes more trouble than it helps. Removed completely.
// Main motivation: protect against hardcoded filename extension in FE.parameter.fileDestination
// In case there is a wrong filenameextension on the outputFilename: extend it.
// $ext = '.' . substr($rcMimetype, strrpos($rcMimetype, '/') + 1); // very very dirty way of getting an extension - only valid for a limited set of mimetypes
// $len = strlen($ext);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment