From: cajus Date: Fri, 27 May 2005 11:32:36 +0000 (+0000) Subject: Fixed problem with case sensitivity in PHP5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=69b38c399542bdcd6245abbea11f251b8c43d876;p=gosa.git Fixed problem with case sensitivity in PHP5 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@477 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_password-methods.inc b/include/class_password-methods.inc index f580eb758..023f1d448 100644 --- a/include/class_password-methods.inc +++ b/include/class_password-methods.inc @@ -73,11 +73,12 @@ class passwordMethod $name = preg_replace ("/passwordMethod/i", "", $one); $test = new $one(false); if($test->is_available()) { - $ret['name'][$i]= preg_replace ("/passwordMethod/i","",$one); + $plugname= strtolower(preg_replace ("/passwordMethod/i","",$one)); + $ret['name'][$i]= $plugname; $ret['class'][$i]=$one; - $ret[$i]['name']= preg_replace("/passwordMethod/i","",$one); + $ret[$i]['name']= $plugname; $ret[$i]['class']= $one; - $ret[preg_replace ("/passwordMethod/i","",$one)]=$one; + $ret[$plugname]=$one; $i++; } }