aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-01-24 17:19:35 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-01-24 17:19:35 +0000
commit01b491e8f5930adca696a09d13501ad6236aadb6 (patch)
tree18d1294a528b2ca227a766ae456457c3d747d151 /phpBB/includes/functions_user.php
parent5f0b61065fdd107d32fa1f2c0b80981a239218a7 (diff)
downloadforums-01b491e8f5930adca696a09d13501ad6236aadb6.tar
forums-01b491e8f5930adca696a09d13501ad6236aadb6.tar.gz
forums-01b491e8f5930adca696a09d13501ad6236aadb6.tar.bz2
forums-01b491e8f5930adca696a09d13501ad6236aadb6.tar.xz
forums-01b491e8f5930adca696a09d13501ad6236aadb6.zip
- fix severe bug with email hash calculation
- fix bug in convertor not correctly converting config values git-svn-id: file:///svn/phpbb/trunk@6927 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r--phpBB/includes/functions_user.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index e9297d490f..6ef3e01056 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -145,7 +145,7 @@ function user_add($user_row, $cp_data = false)
'user_password' => (isset($user_row['user_password'])) ? $user_row['user_password'] : '',
'user_pass_convert' => 0,
'user_email' => strtolower($user_row['user_email']),
- 'user_email_hash' => (int) crc32(strtolower($user_row['user_email'])) . strlen($user_row['user_email']),
+ 'user_email_hash' => crc32(strtolower($user_row['user_email'])) . strlen($user_row['user_email']),
'group_id' => $user_row['group_id'],
'user_type' => $user_row['user_type'],
);
@@ -1332,7 +1332,7 @@ function validate_email($email)
{
$sql = 'SELECT user_email_hash
FROM ' . USERS_TABLE . "
- WHERE user_email_hash = " . crc32($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);