[Mapbender-commits] r9150 - trunk/mapbender/http/print

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Feb 5 02:18:55 PST 2015


Author: armin11
Date: 2015-02-05 02:18:55 -0800 (Thu, 05 Feb 2015)
New Revision: 9150

Modified:
   trunk/mapbender/http/print/printFactory.php
Log:
Give option to define that https should be used by the module which gives back the rendered pdf even if the server where mapbender is installed don't handle certificates. This maybe useful if https is handeled by a reverse proxy in front of the mapbender installation.

Modified: trunk/mapbender/http/print/printFactory.php
===================================================================
--- trunk/mapbender/http/print/printFactory.php	2015-02-05 10:18:18 UTC (rev 9149)
+++ trunk/mapbender/http/print/printFactory.php	2015-02-05 10:18:55 UTC (rev 9150)
@@ -43,6 +43,9 @@
 	new mb_exception($e->message);
 	die;
 }
-
-print $pdf->returnAbsoluteUrl();
+if ($secureProtocol == "true"){
+    print $pdf->returnAbsoluteUrl(true);
+}else{
+    print $pdf->returnAbsoluteUrl();
+}
 ?>



More information about the Mapbender_commits mailing list