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

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


Author: christoph
Date: 2007-08-06 04:04:03 -0400 (Mon, 06 Aug 2007)
New Revision: 1590

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

Modified: trunk/mapbender/http/javascripts/mod_initWmc.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_initWmc.php	2007-08-06 08:03:10 UTC (rev 1589)
+++ trunk/mapbender/http/javascripts/mod_initWmc.php	2007-08-06 08:04:03 UTC (rev 1590)
@@ -59,9 +59,9 @@
 		}
 		else $alt = $kml->description;
 
-		if (ereg("^.*,[[:space:]]((([[:alpha:]]+://)|(www.))[^<>[:space:]]+[[:alnum:]/]).*$", $kml->title)) {
-			$url = ereg_replace("^.*,[[:space:]]((([[:alpha:]]+://)|(www.))[^<>[:space:]]+[[:alnum:]/]).*$", "\\1", $kml->title);
-			if (substr($url, 0, 4) == "www.") {
+		if (mb_ereg("^.*,[[:space:]]((([[:alpha:]]+://)|(www.))[^<>[:space:]]+[[:alnum:]/]).*$", $kml->title)) {
+			$url = mb_ereg_replace("^.*,[[:space:]]((([[:alpha:]]+://)|(www.))[^<>[:space:]]+[[:alnum:]/]).*$", "\\1", $kml->title);
+			if (mb_substr($url, 0, 4) == "www.") {
 				$url = "http://" . $url;
 			}
 		}



More information about the Mapbender_commits mailing list