svn commit: r784 - trunk/mapbender/http/print/mod_printPDF_pdf.php

astrid_emde at osgeo.org astrid_emde at osgeo.org
Tue Oct 10 03:52:02 EDT 2006


Author: astrid_emde
Date: 2006-10-10 07:52:01+0000
New Revision: 784

Modified:
   trunk/mapbender/http/print/mod_printPDF_pdf.php

Log:
if CHARSET utf8 the comments and wms- and layer-title are decoded

Modified: trunk/mapbender/http/print/mod_printPDF_pdf.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/print/mod_printPDF_pdf.php?view=diff&rev=784&p1=trunk/mapbender/http/print/mod_printPDF_pdf.php&p2=trunk/mapbender/http/print/mod_printPDF_pdf.php&r1=783&r2=784
==============================================================================
--- trunk/mapbender/http/print/mod_printPDF_pdf.php	(original)
+++ trunk/mapbender/http/print/mod_printPDF_pdf.php	2006-10-10 07:52:01+0000
@@ -547,9 +547,21 @@
 	}
 	
 	//Requests
+	if(CHARSET=="UTF-8"){
+		$new_wms_title=utf8_decode($_REQUEST["wms_title"]);
+	}else{
+		$new_wms_title=$_REQUEST["wms_title"];
+	}
+	
+	if(CHARSET=="UTF-8"){
+		$new_layers=utf8_decode($_REQUEST["layers"]);
+	}else{
+		$new_layers=$_REQUEST["layers"];
+	}
+	
 	$my_wms_id = explode("___",$_REQUEST["wms_id"]);
-	$my_wms_title = explode("___",$_REQUEST["wms_title"]);
-	$my_layers = explode("___",$_REQUEST["layers"]);
+	$my_wms_title = explode("___",$new_wms_title);
+	$my_layers = explode("___",$new_layers);
 	$my_legend = explode("___",$_REQUEST["legendurl"]);
 
 	//frames (x1, y1, x2, y2)




More information about the Mapbender_commits mailing list