From f73a8ed7fcd2113fc435e17b12719b191fdc1f0d Mon Sep 17 00:00:00 2001 From: dd32 Date: Mon, 31 May 2010 10:53:02 +0000 Subject: [PATCH] Do not stripslashes() passwords during Install, Matches Login/Updating password handling. Props johanee. See #13654 git-svn-id: http://svn.automattic.com/wordpress/trunk@15073 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/install.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/install.php b/wp-admin/install.php index e3ba810edd..58be073861 100644 --- a/wp-admin/install.php +++ b/wp-admin/install.php @@ -183,8 +183,8 @@ switch($step) { // Fill in the data we gathered $weblog_title = isset( $_POST['weblog_title'] ) ? trim( stripslashes( $_POST['weblog_title'] ) ) : ''; $user_name = isset($_POST['user_name']) ? trim( stripslashes( $_POST['user_name'] ) ) : 'admin'; - $admin_password = isset($_POST['admin_password']) ? trim( stripslashes( $_POST['admin_password'] ) ) : ''; - $admin_password_check = isset($_POST['admin_password2']) ? trim( stripslashes( $_POST['admin_password2'] ) ) : ''; + $admin_password = isset($_POST['admin_password']) ? $_POST['admin_password'] : ''; + $admin_password_check = isset($_POST['admin_password2']) ? $_POST['admin_password2'] : ''; $admin_email = isset( $_POST['admin_email'] ) ?trim( stripslashes( $_POST['admin_email'] ) ) : ''; $public = isset( $_POST['blog_public'] ) ? (int) $_POST['blog_public'] : 0; // check e-mail address