aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorNathaniel Guse <nathaniel.guse@gmail.com>2012-09-03 13:32:33 -0500
committerNathaniel Guse <nathaniel.guse@gmail.com>2012-09-03 13:32:33 -0500
commitb3cd5a649be62f175de651a16ae02c5f709ca2f4 (patch)
tree223329608a30291484735b729d4432c61b0362aa /phpBB/includes/functions.php
parent7bf598954c452448c2807428f6517cd75d910f92 (diff)
downloadforums-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/functions.php')
-rw-r--r--phpBB/includes/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 834f57a38b..1cdda60855 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -3044,11 +3044,11 @@ function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = fa
trigger_error('NO_AUTH_ADMIN');
}
- $password = request_var('password_' . $credential, '', true);
+ $password = $request->untrimed_variable('password_' . $credential, '', true);
}
else
{
- $password = request_var('password', '', true);
+ $password = $request->untrimed_variable('password', '', true);
}
$username = request_var('username', '', true);