aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2006-12-02 16:52:17 +0000
committerDavid M <davidmj@users.sourceforge.net>2006-12-02 16:52:17 +0000
commit7a79c742883e26f6ba14701a909dc8d2f97ae8c2 (patch)
treed88fe80a5fd59d1190bd7228c7d33622e531b6e0 /phpBB
parentfbe0c22293ca8889090bb9455f9d12da6a69f655 (diff)
downloadforums-7a79c742883e26f6ba14701a909dc8d2f97ae8c2.tar
forums-7a79c742883e26f6ba14701a909dc8d2f97ae8c2.tar.gz
forums-7a79c742883e26f6ba14701a909dc8d2f97ae8c2.tar.bz2
forums-7a79c742883e26f6ba14701a909dc8d2f97ae8c2.tar.xz
forums-7a79c742883e26f6ba14701a909dc8d2f97ae8c2.zip
by the power of math!
git-svn-id: file:///svn/phpbb/trunk@6700 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions_messenger.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php
index 4625ba47d0..f08e81e754 100644
--- a/phpBB/includes/functions_messenger.php
+++ b/phpBB/includes/functions_messenger.php
@@ -1406,7 +1406,7 @@ function mail_encode($str)
{
$text = '';
- while (sizeof($array) && strlen(base64_encode($text . $array[0])) <= $split_length)
+ while (sizeof($array) && intval((strlen($text . $array[0]) + 2) / 3) << 2 <= $split_length)
{
$text .= array_shift($array);
}