[mapguide-commits] r5921 - trunk/MgDev/Web/src/mapviewerphp

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Fri Jun 3 11:42:40 EDT 2011


Author: jng
Date: 2011-06-03 08:42:40 -0700 (Fri, 03 Jun 2011)
New Revision: 5921

Modified:
   trunk/MgDev/Web/src/mapviewerphp/quickplotgeneratepicture.php
Log:
Fix bad check for HTTPS url that causes QuickPlot to fail when display_errors = On in php.ini

Modified: trunk/MgDev/Web/src/mapviewerphp/quickplotgeneratepicture.php
===================================================================
--- trunk/MgDev/Web/src/mapviewerphp/quickplotgeneratepicture.php	2011-06-03 15:26:17 UTC (rev 5920)
+++ trunk/MgDev/Web/src/mapviewerphp/quickplotgeneratepicture.php	2011-06-03 15:42:40 UTC (rev 5921)
@@ -92,7 +92,7 @@
         // Get the map agent url
         // Get the correct http protocal
         $mapAgent = "http";
-        if ($_SERVER["HTTPS"] == "on")
+        if (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on")
         {
             $mapAgent .= "s";
         }
@@ -113,7 +113,7 @@
                     "&SETDISPLAYWIDTH=$toSize->width" .
                     "&SETDISPLAYHEIGHT=$toSize->height" .
                     "&CLIP=0";
-
+        
         $image = imagecreatefrompng($mapAgent);
         // Rotate the picture back to be normalized
         $normalizedImg = imagerotate($image, -$rotation, 0);



More information about the mapguide-commits mailing list