diff --git a/gosa-core/include/password-methods/class_password-methods-crypt.inc b/gosa-core/include/password-methods/class_password-methods-crypt.inc
index b03b602c7c0dd41fd3e91abcb062b18dac3f2361..518449a139da862604446451b2d4d1d371a2f249 100644 (file)
$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";
}