[Mapbender-commits] r1582 - trunk/mapbender/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Aug 6 03:54:44 EDT 2007
Author: christoph
Date: 2007-08-06 03:54:44 -0400 (Mon, 06 Aug 2007)
New Revision: 1582
Modified:
trunk/mapbender/http/classes/class_stripRequest.php
Log:
replaced old string functions by multibyte string function
Modified: trunk/mapbender/http/classes/class_stripRequest.php
===================================================================
--- trunk/mapbender/http/classes/class_stripRequest.php 2007-08-06 07:54:10 UTC (rev 1581)
+++ trunk/mapbender/http/classes/class_stripRequest.php 2007-08-06 07:54:44 UTC (rev 1582)
@@ -37,9 +37,9 @@
$patterns = explode("&", $a[1]);
for($i=0; $i<count($patterns); $i++){
$tmp = explode("=", $patterns[$i]);
- if(strtoupper($tmp[0]) == strtoupper($key)){
- $replacement = strtoupper($key) . "=" . $value;
- $this->url = str_replace($patterns[$i],$replacement, $this->url);
+ if(mb_strtoupper($tmp[0]) == mb_strtoupper($key)){
+ $replacement = mb_strtoupper($key) . "=" . $value;
+ $this->url = preg_replace($patterns[$i],$replacement, $this->url);
$exists = true;
}
}
@@ -58,7 +58,7 @@
$patterns = explode("&", $a[1]);
for($i=0; $i<count($patterns); $i++){
$tmp = explode("=", $patterns[$i]);
- if(strtoupper($tmp[0]) == strtoupper($key)){
+ if(mb_strtoupper($tmp[0]) == mb_strtoupper($key)){
$exists = true;
return $tmp[1];
}
@@ -90,9 +90,9 @@
$patterns = explode("&", $a[1]);
for($i=0; $i<count($patterns); $i++){
$tmp = explode("=", $patterns[$i]);
- if(strtoupper($tmp[0]) == strtoupper($key)){
+ if(mb_strtoupper($tmp[0]) == mb_strtoupper($key)){
$replacement = "";
- $this->url = str_replace($patterns[$i],$replacement, $this->url);
+ $this->url = preg_replace($patterns[$i],$replacement, $this->url);
}
}
$this->encodeGET();
@@ -104,7 +104,7 @@
$a[0].= "?";
for($i=0; $i<count($patterns); $i++){
$tmp = explode("=", $patterns[$i]);
- if(in_array(strtoupper($tmp[0]),$this->encodeParams)){
+ if(in_array(mb_strtoupper($tmp[0]),$this->encodeParams)){
$val = explode(",", $tmp[1]);
$a[0] .= $tmp[0]."=";
for($ii=0; $ii<count($val); $ii++){
@@ -127,7 +127,7 @@
}
function encodeLegGET(){
- $this->url = str_replace("&", "\&", $this->url);
+ $this->url = preg_replace("&", "\&", $this->url);
return $this->url;
}
}
More information about the Mapbender_commits
mailing list