From 69b38c399542bdcd6245abbea11f251b8c43d876 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 27 May 2005 11:32:36 +0000 Subject: [PATCH] Fixed problem with case sensitivity in PHP5 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@477 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_password-methods.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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++; } } -- 2.30.2