mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 21:38:54 +00:00
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:
parent
7479592c81
commit
0a139376ab
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue