Code

Fixed typo
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 27 Mar 2008 22:12:36 +0000 (22:12 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 27 Mar 2008 22:12:36 +0000 (22:12 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10044 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/password-methods/class_password-methods-crypt.inc

index b03b602c7c0dd41fd3e91abcb062b18dac3f2361..518449a139da862604446451b2d4d1d371a2f249 100644 (file)
@@ -104,11 +104,11 @@ class passwordMethodCrypt extends passwordMethod
 
     $password_hash= preg_replace('/^{[^}]+}!?/', '', $password_hash);
 
-    if (preg_match("/^[a-z-A-Z0-9.\/][a-z-A-Z0-9.\/]/", $password_hash)){
+    if (preg_match("/^[a-zA-Z0-9.\/][a-zA-Z0-9.\/]/", $password_hash)){
       return "crypt/standard-des";
     }
 
-    if (preg_match("/^_[a–zA-Z0–9.\/]/i", $password_hash)){
+    if (preg_match("/^_[a-zA-Z0-9.\/]/", $password_hash)){
       return "crypt/enhanced-des";
     }