[Mapbender-commits] r1598 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Aug 6 04:27:00 EDT 2007


Author: christoph
Date: 2007-08-06 04:27:00 -0400 (Mon, 06 Aug 2007)
New Revision: 1598

Modified:
   trunk/mapbender/http/php/mod_wfs_gazetteer_server.php
Log:
replaced old string functions by multibyte string function

Modified: trunk/mapbender/http/php/mod_wfs_gazetteer_server.php
===================================================================
--- trunk/mapbender/http/php/mod_wfs_gazetteer_server.php	2007-08-06 08:26:09 UTC (rev 1597)
+++ trunk/mapbender/http/php/mod_wfs_gazetteer_server.php	2007-08-06 08:27:00 UTC (rev 1598)
@@ -50,7 +50,7 @@
 			$user = eval("return " . $auth_varname . ";");
 			$pattern = "(<ogc:Filter[^>]*>)(.*)(</ogc:Filter>)";
 			$replacement = "\\1<And>\\2<ogc:PropertyIsEqualTo><ogc:PropertyName>" . $element_name . "</ogc:PropertyName><ogc:Literal>" . $user . "</ogc:Literal></ogc:PropertyIsEqualTo></And>\\3"; 
-			$filter = eregi_replace($pattern, $replacement, $filter);
+			$filter = mb_eregi_replace($pattern, $replacement, $filter);
 		}
 	}
 	return $filter;
@@ -62,7 +62,7 @@
 	$wfsConfIdString = $_GET["wfsConfIdString"];
 	
 	if ($wfsConfIdString != "") {
-		$wfsConfIdArray = split(",", $wfsConfIdString);
+		$wfsConfIdArray = mb_split(",", $wfsConfIdString);
 	}
 	else {
 		echo "please specify wfs conf id.";



More information about the Mapbender_commits mailing list