Code

Fixed problem with case sensitivity in PHP5
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 27 May 2005 11:32:36 +0000 (11:32 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 27 May 2005 11:32:36 +0000 (11:32 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@477 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_password-methods.inc

index f580eb75882b36879383f893e0e1c56efc38e0d5..023f1d4488ee569b306f83e7687a93161d464706 100644 (file)
@@ -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++;
         }
       }