From c3a286cfeeeaedba304c6585e100c692c8d429c7 Mon Sep 17 00:00:00 2001 From: Deon George Date: Tue, 16 Nov 2010 20:06:39 +1100 Subject: [PATCH] SF Bug #3033924 - typo in fnctions.php breaking smd5 --- lib/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions.php b/lib/functions.php index d09ef8c..59f9919 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -2174,7 +2174,7 @@ function password_hash($password_clear,$enc_type) { if (function_exists('mhash') && function_exists('mhash_keygen_s2k')) { mt_srand((double)microtime()*1000000); $salt = mhash_keygen_s2k(MHASH_MD5,$password_clear,substr(pack('h*',md5(mt_rand())),0,8),4); - $new_value = spritnf('{SMD5}%s',base64_encode(mhash(MHASH_MD5,$password_clear.$salt).$salt)); + $new_value = sprintf('{SMD5}%s',base64_encode(mhash(MHASH_MD5,$password_clear.$salt).$salt)); } else { error(_('Your PHP install does not have the mhash() or mhash_keygen_s2k() function. Cannot do S2K hashes.'),'error','index.php');