1
0
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:
Joas Schilling
2009-08-28 09:26:43 +00:00
parent 7cf867419f
commit c52f05b332
8 changed files with 16 additions and 7 deletions

View File

@@ -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
*