Skip to content

Commit f96e44e

Browse files
committed
Do not stripslashes() passwords during Install, Matches Login/Updating password handling. Props johanee. See #13654
git-svn-id: https://develop.svn.wordpress.org/trunk@15073 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 29a6333 commit f96e44e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wp-admin/install.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ function display_setup_form( $error = null ) {
183183
// Fill in the data we gathered
184184
$weblog_title = isset( $_POST['weblog_title'] ) ? trim( stripslashes( $_POST['weblog_title'] ) ) : '';
185185
$user_name = isset($_POST['user_name']) ? trim( stripslashes( $_POST['user_name'] ) ) : 'admin';
186-
$admin_password = isset($_POST['admin_password']) ? trim( stripslashes( $_POST['admin_password'] ) ) : '';
187-
$admin_password_check = isset($_POST['admin_password2']) ? trim( stripslashes( $_POST['admin_password2'] ) ) : '';
186+
$admin_password = isset($_POST['admin_password']) ? $_POST['admin_password'] : '';
187+
$admin_password_check = isset($_POST['admin_password2']) ? $_POST['admin_password2'] : '';
188188
$admin_email = isset( $_POST['admin_email'] ) ?trim( stripslashes( $_POST['admin_email'] ) ) : '';
189189
$public = isset( $_POST['blog_public'] ) ? (int) $_POST['blog_public'] : 0;
190190
// check e-mail address

0 commit comments

Comments
 (0)