[evolvis-commits] r18419: frs-download-as-zip pending merges:↵ Thorsten Glaser 2012-05-21 correctly urldecode() the filename

mirabilos at evolvis.org mirabilos at evolvis.org
Mon May 21 11:53:32 CEST 2012


Author: mirabilos
Date: 2012-05-21 11:53:32 +0200 (Mon, 21 May 2012)
New Revision: 18419

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/www/frs/download.php
Log:
frs-download-as-zip pending merges:
  Thorsten Glaser 2012-05-21 correctly urldecode() the filename

Modified: trunk/gforge_base/evolvisforge-5.1/src/www/frs/download.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/www/frs/download.php	2012-05-21 09:53:28 UTC (rev 18418)
+++ trunk/gforge_base/evolvisforge-5.1/src/www/frs/download.php	2012-05-21 09:53:32 UTC (rev 18419)
@@ -147,7 +147,7 @@
 	// 123 -> package_id
 	// foo.tar.gz -> file name
 	$package_id = $expl_pathinfo[4];
-	$file_name = $expl_pathinfo[5];
+	$file_name = urldecode($expl_pathinfo[5]);
 
 	$res = db_query_params ('SELECT f.file_id FROM frs_file f, frs_release r, frs_package p WHERE f.release_id = r.release_id AND r.package_id = p.package_id AND p.package_id = $1 AND f.filename = $2 ORDER BY f.release_id DESC',
 				array($package_id, $file_name));



More information about the evolvis-commits mailing list