From 0a139376abd49b089cd6d9de1d064f6f3098a629 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Thu, 16 Apr 2009 15:39:29 +0000 Subject: [PATCH] fix revision #r9430 - all hail the math! git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9449 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_messenger.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php index aad064d5e6..d2c738967c 100644 --- a/phpBB/includes/functions_messenger.php +++ b/phpBB/includes/functions_messenger.php @@ -1448,8 +1448,8 @@ function mail_encode($str) $end = "?="; $delimiter = "\r\n "; - // Maximum length is 75 for everything. 75 - length of start/end/delimiter == 63 - $split_length = 63; + // Maximum length is 75. $split_length *must* be a multiple of 4, but <= 75 - strlen($start . $delimiter . $end)!!! + $split_length = 60; $encoded_str = base64_encode($str); // If encoded string meets the limits, we just return with the correct data.