[fusion-commits] r2299 - trunk/widgets/QuickPlot
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Wed Dec 8 05:17:58 EST 2010
Author: hubu
Date: 2010-12-08 02:17:58 -0800 (Wed, 08 Dec 2010)
New Revision: 2299
Modified:
trunk/widgets/QuickPlot/GeneratePicture.php
Log:
fix ticket: http://trac.osgeo.org/fusion/ticket/422
This is because, in PHP we can't ge the image of quickplot when the map name has blank on Linux. We need to code the mapname to url, so the blank is conver to %20 as url.
Modified: trunk/widgets/QuickPlot/GeneratePicture.php
===================================================================
--- trunk/widgets/QuickPlot/GeneratePicture.php 2010-12-06 20:55:09 UTC (rev 2298)
+++ trunk/widgets/QuickPlot/GeneratePicture.php 2010-12-08 10:17:58 UTC (rev 2299)
@@ -105,7 +105,7 @@
$mapAgent .= substr($_SERVER["REQUEST_URI"], 0, strpos($_SERVER["REQUEST_URI"], "/", 1));
$mapAgent .="/mapagent/mapagent.fcgi?VERSION=1.0.0&OPERATION=GETMAPIMAGE" .
"&SESSION=$sessionID" .
- "&MAPNAME=$mapName" .
+ "&MAPNAME=" . rawurlencode($mapName) .
"&FORMAT=PNG" .
"&SETVIEWCENTERX=" . $center->GetX() .
"&SETVIEWCENTERY=" . $center->GetY() .
More information about the fusion-commits
mailing list