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

svn_fusion at osgeo.org svn_fusion at osgeo.org
Wed Aug 1 23:10:32 PDT 2012


Author: liuar
Date: 2012-08-01 23:10:32 -0700 (Wed, 01 Aug 2012)
New Revision: 2564

Modified:
   trunk/widgets/QuickPlot/PlotAsPDF.php
Log:
On behalf of Ted Yang.
fix the ticket 2075: http://trac.osgeo.org/mapguide/ticket/2075
	
The submission is mainly implement the RFC 124:http://trac.osgeo.org/mapguide/wiki/MapGuideRfc124
part 5:
fix a defect which will cause the Linux won't work. the $_SERVER["HTTP_HOST"] will return the server name or ip with the port. use the $_SERVER["SERVER_NAME"]

Modified: trunk/widgets/QuickPlot/PlotAsPDF.php
===================================================================
--- trunk/widgets/QuickPlot/PlotAsPDF.php	2012-08-02 05:47:45 UTC (rev 2563)
+++ trunk/widgets/QuickPlot/PlotAsPDF.php	2012-08-02 06:10:32 UTC (rev 2564)
@@ -2,7 +2,7 @@
     require_once("../../lib/tcpdf/config/lang/eng.php");
     require_once("../../lib/tcpdf/tcpdf.php");
 
-    $host = $_SERVER["HTTP_HOST"];
+    $host = $_SERVER["SERVER_NAME"];
     $protocol = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] != "off") ? "https://" : "http://"; 
     $path = $_SERVER["PHP_SELF"];
     $port = $_SERVER["SERVER_PORT"];



More information about the fusion-commits mailing list