[Mapbender-commits] r1577 - trunk/mapbender/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Aug 6 03:50:45 EDT 2007
Author: christoph
Date: 2007-08-06 03:50:45 -0400 (Mon, 06 Aug 2007)
New Revision: 1577
Modified:
trunk/mapbender/http/classes/class_administration.php
Log:
replaced old string functions by multibyte string function
Modified: trunk/mapbender/http/classes/class_administration.php
===================================================================
--- trunk/mapbender/http/classes/class_administration.php 2007-08-06 07:49:03 UTC (rev 1576)
+++ trunk/mapbender/http/classes/class_administration.php 2007-08-06 07:50:45 UTC (rev 1577)
@@ -39,7 +39,7 @@
* @return <boolean> answer to "is the passed over email valid?""
*/
function isValidEmail($email) {
- if(eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)) {
+ if(mb_eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)) {
return true;
}
return false;
@@ -123,7 +123,7 @@
for ($i=0;$i <= $max;$i++) {
//die ASCII-Zeichen 48 - 57 sind die zahlen 0-9
- //die ASCII-Zeichen 65 - 90 sind die buchstaben A-Z (Groß)
+ //die ASCII-Zeichen 65 - 90 sind die buchstaben A-Z (Gro�)
//die ASCII-Zeichen 97 - 122 sind die buchstaben a-z (Klein)
$ascii = 0;
do {
@@ -777,7 +777,7 @@
$res = db_prep_query($sql,$v,$t);
$cnt = 0;
while($row = db_fetch_array($res)){
- if(strpos(stripslashes($row[$column]),$modulePath) !== false){
+ if(mb_strpos(stripslashes($row[$column]),$modulePath) !== false){
$perm = true;
}
$cnt++;
@@ -818,7 +818,7 @@
function checkURL($url){
$pos_qm = strpos($url,"?");
- if($pos_qm > 0 && $pos_qm < (strlen($url)-1) && substr($url,(strlen($url)-1)) != "&"){
+ if($pos_qm > 0 && $pos_qm < (mb_strlen($url)-1) && mb_substr($url,(mb_strlen($url)-1)) != "&"){
$url = $url."&";
return $url;
}
More information about the Mapbender_commits
mailing list