[Fusionforge-commits] r8113 - branches/Branch_4_8/gforge/www/docman
Roland Mas
lolando at libremir.placard.fr.eu.org
Mon Sep 7 16:40:29 CEST 2009
Author: lolando
Date: 2009-09-07 16:40:29 +0200 (Mon, 07 Sep 2009)
New Revision: 8113
Modified:
branches/Branch_4_8/gforge/www/docman/view.php
Log:
Always use appropriate MIME?\194?\160type when sending out documents from the Docman
Modified: branches/Branch_4_8/gforge/www/docman/view.php
===================================================================
--- branches/Branch_4_8/gforge/www/docman/view.php 2009-09-06 18:17:13 UTC (rev 8112)
+++ branches/Branch_4_8/gforge/www/docman/view.php 2009-09-07 14:40:29 UTC (rev 8113)
@@ -47,13 +47,8 @@
}
Header ('Content-disposition: filename="'.str_replace('"', '', $d->getFileName()).'"');
+ Header ("Content-type: ".$d->getFileType());
- if (strstr($d->getFileType(),'app')) {
- Header ("Content-type: application/binary");
- } else {
- Header ("Content-type: ".$d->getFileType());
- }
-
echo $d->getFileData();
} else {
More information about the Fusionforge-commits
mailing list