[Mapbender-commits] r2152 - branches/2.4.5/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Feb 27 12:22:12 EST 2008


Author: astrid_emde
Date: 2008-02-27 12:22:12 -0500 (Wed, 27 Feb 2008)
New Revision: 2152

Modified:
   branches/2.4.5/http/php/download.php
Log:
image path was not correct handled

Modified: branches/2.4.5/http/php/download.php
===================================================================
--- branches/2.4.5/http/php/download.php	2008-02-27 15:15:18 UTC (rev 2151)
+++ branches/2.4.5/http/php/download.php	2008-02-27 17:22:12 UTC (rev 2152)
@@ -29,6 +29,8 @@
 $download["dir"]  = TMPDIR;
 $download["file"] = trim($_REQUEST["download"]);
 
+
+
 if(!(bool)$download["file"]) {
 	die("No filename given.");
 }
@@ -37,9 +39,9 @@
 	die("Illegal filename given.");
 }
 
- 
+$img = $download["dir"]."/".$download["file"]; 
 
-if(!file_exists(implode($download)) || !is_readable(implode($download))) {
+if(!file_exists($img) || !is_readable($img)) {
 	die("An error occured.");
 	
 }



More information about the Mapbender_commits mailing list