mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-08 09:46:46 +02:00
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
This commit is contained in:
@@ -551,6 +551,14 @@ function _hash_crypt_private($password, $setting, &$itoa64)
|
||||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
* Hash email
|
||||
*/
|
||||
function phpbb_email_hash($email)
|
||||
{
|
||||
return crc32(strtolower($email)) . strlen($email);
|
||||
}
|
||||
|
||||
/**
|
||||
* Global function for chmodding directories and files for internal use
|
||||
*
|
||||
|
Reference in New Issue
Block a user