fix revision #r9430 - all hail the math!

git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9449 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2009-04-16 15:39:29 +00:00
parent 7479592c81
commit 0a139376ab

View file

@ -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.