[svn r21564] FS#306 - The Dropbox tool, the downloader: Making detection of OpenOffice related files precise.

skala
Ivan Tcholakov 16 years ago
parent 415448375e
commit a5ea1a0c6b
  1. 6
      main/dropbox/dropbox_download.php

@ -143,7 +143,7 @@ else
//no information about filetype: force a download dialog window in browser
header( "Content-type: application/octet-stream\n");
}
if(!in_array($fileparts [$filepartscount - 1],array('doc','xls','ppt','pps','sxw','sxc','sxi')))
if (!in_array(strtolower($fileparts [$filepartscount - 1]), array('doc','xls','ppt','pps','sxw','sxc','sxi')))
{
header('Content-Disposition: inline; filename='.$file); // bugs with open office
}
@ -383,7 +383,7 @@ else
header( "Content-type: application/octet-stream\n");
}
if(!in_array($fileparts [$filepartscount - 1],array('doc','xls','ppt','pps','sxw','sxc','sxi')))
if (!in_array(strtolower($fileparts [$filepartscount - 1]), array('doc','xls','ppt','pps','sxw','sxc','sxi')))
{
header('Content-Disposition: inline; filename='.$file); // bugs with open office
}
@ -439,4 +439,4 @@ exit( );
* Solution: Make sure your download script/section is off in its own directory. and add the following to your .htaccess file for that directory:
* php_flag zlib.output_compression off
*/
?>
?>

Loading…
Cancel
Save