[Mapbender-commits] r7027 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Oct 5 07:31:20 EDT 2010


Author: verenadiewald
Date: 2010-10-05 11:31:20 +0000 (Tue, 05 Oct 2010)
New Revision: 7027

Modified:
   trunk/mapbender/http/classes/class_wfs.php
Log:
if property value for transaction is numeric or empty string, do not mask it with CDATA

Modified: trunk/mapbender/http/classes/class_wfs.php
===================================================================
--- trunk/mapbender/http/classes/class_wfs.php	2010-10-05 11:04:02 UTC (rev 7026)
+++ trunk/mapbender/http/classes/class_wfs.php	2010-10-05 11:31:20 UTC (rev 7027)
@@ -228,8 +228,14 @@
 		$propertiesSegment = "";
 		foreach ($feature->properties as $key => $value) {
 			if (isset($value)) {
+				if (is_numeric($value) || $value == "") {
+					$value = $value;
+				}
+				else {
+					$value = "<![CDATA[$value]]>";
+				}
 				$propertiesSegment .= "<wfs:Property><wfs:Name>$featureNS:$key</wfs:Name>" . 
-					"<wfs:Value><![CDATA[$value]]></wfs:Value></wfs:Property>";
+					"<wfs:Value>$value</wfs:Value></wfs:Property>";
 			}
 		}
 



More information about the Mapbender_commits mailing list