mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 00:07:44 +02:00
- fixing a bunch of bugs
- moved the install trigger error to sessions and also disabled it for those having DEBUG_EXTRA enabled. i hope not having introduced too many new bugs. git-svn-id: file:///svn/phpbb/trunk@6628 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -142,7 +142,7 @@ function user_add($user_row, $cp_data = false)
|
||||
'username' => $user_row['username'],
|
||||
'username_clean' => utf8_clean_string($user_row['username']),
|
||||
'user_password' => (isset($user_row['user_password'])) ? $user_row['user_password'] : '',
|
||||
'user_email' => $user_row['user_email'],
|
||||
'user_email' => strtolower($user_row['user_email']),
|
||||
'user_email_hash' => (int) crc32(strtolower($user_row['user_email'])) . strlen($user_row['user_email']),
|
||||
'group_id' => $user_row['group_id'],
|
||||
'user_type' => $user_row['user_type'],
|
||||
@@ -1217,7 +1217,9 @@ function validate_email($email)
|
||||
{
|
||||
global $config, $db, $user;
|
||||
|
||||
if (strtolower($user->data['user_email']) == strtolower($email))
|
||||
$email = strtolower($email);
|
||||
|
||||
if (strtolower($user->data['user_email']) == $email)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -1248,7 +1250,7 @@ function validate_email($email)
|
||||
{
|
||||
$sql = 'SELECT user_email_hash
|
||||
FROM ' . USERS_TABLE . "
|
||||
WHERE user_email_hash = " . crc32(strtolower($email)) . strlen($email);
|
||||
WHERE user_email_hash = " . crc32($email) . strlen($email);
|
||||
$result = $db->sql_query($sql);
|
||||
$row = $db->sql_fetchrow($result);
|
||||
$db->sql_freeresult($result);
|
||||
|
Reference in New Issue
Block a user