mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 23:37:39 +02:00
by the power of math!
git-svn-id: file:///svn/phpbb/trunk@6700 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user