by the power of math!

git-svn-id: file:///svn/phpbb/trunk@6700 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M 2006-12-02 16:52:17 +00:00
parent fbe0c22293
commit 7a79c74288

View file

@ -1406,7 +1406,7 @@ function mail_encode($str)
{ {
$text = ''; $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); $text .= array_shift($array);
} }