mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 09:28:29 +01:00
Added GET-parameter download to get SiteMgr's download module working with the new filemanager. It forces viewable mime-type to be downloaded (if set).
This commit is contained in:
parent
1b4b338fb9
commit
104014b4ed
@ -1718,7 +1718,7 @@
|
||||
}
|
||||
$viewable = array('','text/plain','text/csv','text/html','text/text');
|
||||
|
||||
if(in_array($mime_type,$viewable))
|
||||
if(in_array($mime_type,$viewable) && !$_GET['download'])
|
||||
{
|
||||
header('Content-type: ' . $mime_type);
|
||||
header('Content-disposition: filename="' . $this->file . '"');//FIXME
|
||||
|
Loading…
Reference in New Issue
Block a user