[Mapbender-commits] r4828 - branches/2.6/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Oct 20 08:15:13 EDT 2009


Author: christoph
Date: 2009-10-20 08:15:13 -0400 (Tue, 20 Oct 2009)
New Revision: 4828

Modified:
   branches/2.6/http/classes/class_gml_factory.php
Log:
now parsing works if feature property values contain linefeeds

Modified: branches/2.6/http/classes/class_gml_factory.php
===================================================================
--- branches/2.6/http/classes/class_gml_factory.php	2009-10-20 12:14:31 UTC (rev 4827)
+++ branches/2.6/http/classes/class_gml_factory.php	2009-10-20 12:15:13 UTC (rev 4828)
@@ -30,7 +30,10 @@
 abstract class GmlFactory {
 
 	public function removeWhiteSpace ($string) {
-		return preg_replace("/\>(\s)+\</", "><", trim($string));
+		$str = preg_replace("/\>(\s)+\</", "><", trim($string));
+		$str = preg_replace("/\\n/", "\\n", $str);
+		return $str;
+		
 	}
 	
 	/**



More information about the Mapbender_commits mailing list