diff options
-rw-r--r-- | inc/auth.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/auth.php b/inc/auth.php index 3966a4d47..87b5f80ee 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -861,7 +861,7 @@ function auth_cryptPassword($clear,$method='',$salt=null){ switch(strtolower($method)){ case 'smd5': - if(defined('CRYPT_MD5')) return crypt($clear,'$1$'.substr($salt,0,8).'$'); + if(defined('CRYPT_MD5') && CRYPT_MD5) return crypt($clear,'$1$'.substr($salt,0,8).'$'); // when crypt can't handle SMD5, falls through to pure PHP implementation $magic = '1'; case 'apr1': |