Updates to wp 4.0.1

This commit is contained in:
nikolark committed 2014-11-26 21:10:37 +01:00
1 parent 03777ef2b0
commit 70d2335bba
184 files changed
+9953 -3052

No files matched your search

+8
View File
@@ -214,6 +214,10 @@ class PasswordHash {
function HashPassword($password)
{
if ( strlen( $password ) > 4096 ) {
return '*';
}
$random = '';
if (CRYPT_BLOWFISH == 1 && !$this->portable_hashes) {
@@ -249,6 +253,10 @@ class PasswordHash {
function CheckPassword($password, $stored_hash)
{
if ( strlen( $password ) > 4096 ) {
return false;
}
$hash = $this->crypt_private($password, $stored_hash);
if ($hash[0] == '*')
$hash = crypt($password, $stored_hash);