mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-07 01:06:48 +02:00
- updated all code to use the request class instead of any direct access to
super globals - disabled super globals in common.php. See commit r9101 for more information - cleaned up/simplified a few lines along the way. git-svn-id: file:///svn/phpbb/trunk@9102 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -100,9 +100,15 @@ function login_db(&$username, &$password)
|
||||
/*if ($row['user_pass_convert'])
|
||||
{
|
||||
// in phpBB2 passwords were used exactly as they were sent, with addslashes applied
|
||||
$disabled = request::super_globals_disabled();
|
||||
request::enable_super_globals();
|
||||
$password_old_format = isset($_REQUEST['password']) ? (string) $_REQUEST['password'] : '';
|
||||
$password_old_format = (!STRIP) ? addslashes($password_old_format) : $password_old_format;
|
||||
$password_new_format = '';
|
||||
if ($disabled)
|
||||
{
|
||||
request::disable_super_globals();
|
||||
}
|
||||
|
||||
set_var($password_new_format, stripslashes($password_old_format), 'string');
|
||||
|
||||
|
Reference in New Issue
Block a user