diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2009-08-28 09:26:43 +0000 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2009-08-28 09:26:43 +0000 |
commit | c52f05b3329c9c79ecbc3184bd65cdbe4644ebcd (patch) | |
tree | 444edeceabcd9527cc5a9946ff11d1d49bf1ecd5 /phpBB/includes/ucp/ucp_profile.php | |
parent | 7cf867419f567e0cf0ab9b4a9fb191ade71df948 (diff) | |
download | forums-c52f05b3329c9c79ecbc3184bd65cdbe4644ebcd.tar forums-c52f05b3329c9c79ecbc3184bd65cdbe4644ebcd.tar.gz forums-c52f05b3329c9c79ecbc3184bd65cdbe4644ebcd.tar.bz2 forums-c52f05b3329c9c79ecbc3184bd65cdbe4644ebcd.tar.xz forums-c52f05b3329c9c79ecbc3184bd65cdbe4644ebcd.zip |
Fix Bug #49195 - Queries on un-indexed column user_email
Added function to generate email-hash.
Authorised by: AcydBurn
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10060 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/ucp/ucp_profile.php')
-rw-r--r-- | phpBB/includes/ucp/ucp_profile.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php index a7785e7163..e24acd89fc 100644 --- a/phpBB/includes/ucp/ucp_profile.php +++ b/phpBB/includes/ucp/ucp_profile.php @@ -110,7 +110,7 @@ class ucp_profile 'username' => ($auth->acl_get('u_chgname') && $config['allow_namechange']) ? $data['username'] : $user->data['username'], 'username_clean' => ($auth->acl_get('u_chgname') && $config['allow_namechange']) ? utf8_clean_string($data['username']) : $user->data['username_clean'], 'user_email' => ($auth->acl_get('u_chgemail')) ? $data['email'] : $user->data['user_email'], - 'user_email_hash' => ($auth->acl_get('u_chgemail')) ? crc32($data['email']) . strlen($data['email']) : $user->data['user_email_hash'], + 'user_email_hash' => ($auth->acl_get('u_chgemail')) ? phpbb_email_hash($data['email']) : $user->data['user_email_hash'], 'user_password' => ($auth->acl_get('u_chgpasswd') && $data['new_password']) ? phpbb_hash($data['new_password']) : $user->data['user_password'], 'user_passchg' => ($auth->acl_get('u_chgpasswd') && $data['new_password']) ? time() : 0, ); |