diff options
| author | Nathaniel Guse <nathaniel.guse@gmail.com> | 2012-09-03 13:32:33 -0500 |
|---|---|---|
| committer | Nathaniel Guse <nathaniel.guse@gmail.com> | 2012-09-03 13:32:33 -0500 |
| commit | b3cd5a649be62f175de651a16ae02c5f709ca2f4 (patch) | |
| tree | 223329608a30291484735b729d4432c61b0362aa /phpBB/includes/ucp/ucp_profile.php | |
| parent | 7bf598954c452448c2807428f6517cd75d910f92 (diff) | |
| download | forums-b3cd5a649be62f175de651a16ae02c5f709ca2f4.tar forums-b3cd5a649be62f175de651a16ae02c5f709ca2f4.tar.gz forums-b3cd5a649be62f175de651a16ae02c5f709ca2f4.tar.bz2 forums-b3cd5a649be62f175de651a16ae02c5f709ca2f4.tar.xz forums-b3cd5a649be62f175de651a16ae02c5f709ca2f4.zip | |
[ticket/8713] Do not trim login inputs
Create a function to request variables which are not trimmed.
All requests for passwords (except forum passwords) now use the
untrimmed request function.
PHPBB3-8713
Diffstat (limited to 'phpBB/includes/ucp/ucp_profile.php')
| -rw-r--r-- | phpBB/includes/ucp/ucp_profile.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php index 2ac82fb52f..68d5dd5d65 100644 --- a/phpBB/includes/ucp/ucp_profile.php +++ b/phpBB/includes/ucp/ucp_profile.php @@ -46,9 +46,9 @@ class ucp_profile $data = array( 'username' => utf8_normalize_nfc(request_var('username', $user->data['username'], true)), 'email' => strtolower(request_var('email', $user->data['user_email'])), - 'new_password' => request_var('new_password', '', true), - 'cur_password' => request_var('cur_password', '', true), - 'password_confirm' => request_var('password_confirm', '', true), + 'new_password' => $request->untrimed_variable('new_password', '', true), + 'cur_password' => $request->untrimed_variable('cur_password', '', true), + 'password_confirm' => $request->untrimed_variable('password_confirm', '', true), ); add_form_key('ucp_reg_details'); |
