[fusion-commits] r2210 - trunk/widgets/QuickPlot

svn_fusion at osgeo.org svn_fusion at osgeo.org
Tue Aug 31 05:49:08 EDT 2010


Author: liuar
Date: 2010-08-31 09:49:08 +0000 (Tue, 31 Aug 2010)
New Revision: 2210

Modified:
   trunk/widgets/QuickPlot/GeneratePicture.php
Log:
Submit on behalf of Mars Wu for Quick Plot

Modified: trunk/widgets/QuickPlot/GeneratePicture.php
===================================================================
--- trunk/widgets/QuickPlot/GeneratePicture.php	2010-08-30 01:09:37 UTC (rev 2209)
+++ trunk/widgets/QuickPlot/GeneratePicture.php	2010-08-31 09:49:08 UTC (rev 2210)
@@ -102,7 +102,7 @@
         // Get the correct port number
         $mapAgent .= "://" . $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"];
         // Get the correct virtual directory
-        $mapAgent .= substr($_SERVER["URL"], 0, strpos($_SERVER["URL"], "/", 1) + 1);
+        $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" .



More information about the fusion-commits mailing list