From 7a79c742883e26f6ba14701a909dc8d2f97ae8c2 Mon Sep 17 00:00:00 2001 From: David M Date: Sat, 2 Dec 2006 16:52:17 +0000 Subject: [PATCH] by the power of math! git-svn-id: file:///svn/phpbb/trunk@6700 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_messenger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }