From ab26eb60bc802b51ce6883807d25de9ae8e9600f Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Sun, 15 Feb 2009 16:21:28 +0000 Subject: [PATCH] If we have to generate people salts then make them 64 chars long. Fixes #8647 props sivel. git-svn-id: https://develop.svn.wordpress.org/trunk@10577 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/pluggable.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index fc6fc8ff81..e5e5ca9c7b 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -1226,7 +1226,7 @@ function wp_salt($scheme = 'auth') { } else { $salt = get_option('auth_salt'); if ( empty($salt) ) { - $salt = wp_generate_password(); + $salt = wp_generate_password(64); update_option('auth_salt', $salt); } } @@ -1239,7 +1239,7 @@ function wp_salt($scheme = 'auth') { } else { $salt = get_option('secure_auth_salt'); if ( empty($salt) ) { - $salt = wp_generate_password(); + $salt = wp_generate_password(64); update_option('secure_auth_salt', $salt); } } @@ -1252,7 +1252,7 @@ function wp_salt($scheme = 'auth') { } else { $salt = get_option('logged_in_salt'); if ( empty($salt) ) { - $salt = wp_generate_password(); + $salt = wp_generate_password(64); update_option('logged_in_salt', $salt); } } @@ -1265,7 +1265,7 @@ function wp_salt($scheme = 'auth') { } else { $salt = get_option('nonce_salt'); if ( empty($salt) ) { - $salt = wp_generate_password(); + $salt = wp_generate_password(64); update_option('nonce_salt', $salt); } }