[Mapbender-commits] r1435 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jun 5 06:04:37 EDT 2007


Author: christoph
Date: 2007-06-05 06:04:37 -0400 (Tue, 05 Jun 2007)
New Revision: 1435

Modified:
   trunk/mapbender/http/javascripts/mod_displayWmc.php
Log:
deactivated short_open_tag

This setting is necessary because otherwise the XML
(beginning with "<?xml") will be interpreted as php!

didn't work

trying htmlentities

Modified: trunk/mapbender/http/javascripts/mod_displayWmc.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_displayWmc.php	2007-06-05 09:57:50 UTC (rev 1434)
+++ trunk/mapbender/http/javascripts/mod_displayWmc.php	2007-06-05 10:04:37 UTC (rev 1435)
@@ -29,11 +29,8 @@
 		if ($wmc_gml){
 			//Display WMC
  
-			// This setting is necessary because otherwise the XML
-			// (beginning with "<?xml") will be interpreted as php!
-			ini_set("short_open_tag", "0");
 			header("Content-type: application/xhtml+xml; charset=".CHARSET);
-			echo $wmc_gml;
+			echo htmlentities($wmc_gml);
 		}
 		else{
 			echo "Invalid document!";



More information about the Mapbender_commits mailing list