[Fusionforge-commits] r8246 - trunk/gforge/www/tracker

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Tue Oct 6 21:37:16 CEST 2009


Author: aljeux
Date: 2009-10-06 21:37:16 +0200 (Tue, 06 Oct 2009)
New Revision: 8246

Modified:
   trunk/gforge/www/tracker/download.php
Log:
Fix filename in tracker if double quotes inside

Modified: trunk/gforge/www/tracker/download.php
===================================================================
--- trunk/gforge/www/tracker/download.php	2009-10-06 19:37:10 UTC (rev 8245)
+++ trunk/gforge/www/tracker/download.php	2009-10-06 19:37:16 UTC (rev 8246)
@@ -63,8 +63,8 @@
 	} else if ($afh->isError()) {
 		exit_error('ERROR',$afh->getErrorMessage());
 	} else {
-		Header ('Content-disposition: attachment; filename="'.$afh->getName().'"');
-		Header ('Content-type: '.$afh->getType());
+		Header ('Content-disposition: filename="'.str_replace('"', '', $afh->getName()).'"');
+		Header ("Content-type: ".$afh->getType());
 		echo $afh->getData();
 	}
 }




More information about the Fusionforge-commits mailing list