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/functions.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/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index e23278a0f2..17fb351630 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -552,6 +552,14 @@ function _hash_crypt_private($password, $setting, &$itoa64) } /** +* Hash email +*/ +function phpbb_email_hash($email) +{ + return crc32(strtolower($email)) . strlen($email); +} + +/** * Global function for chmodding directories and files for internal use * * This function determines owner and group whom the file belongs to and user and group of PHP and then set safest possible file permissions. |