| version 1.5, 2015/11/24 17:21:06 |
version 1.6, 2024/11/20 15:48:04 |
| Line 311 class Mail_mimePart |
|
| Line 311 class Mail_mimePart |
|
| { |
{ |
| $encoded =& $this->encoded; |
$encoded =& $this->encoded; |
| |
|
| if (count($this->subparts)) { |
if (is_array($this->subparts) |
| |
&& count($this->subparts)) |
| |
{ |
| $boundary = $boundary ? $boundary : '=_' . md5(rand() . microtime()); |
$boundary = $boundary ? $boundary : '=_' . md5(rand() . microtime()); |
| $eol = $this->eol; |
$eol = $this->eol; |
| |
|
| Line 622 class Mail_mimePart |
|
| Line 624 class Mail_mimePart |
|
| $escape = '='; |
$escape = '='; |
| $output = ''; |
$output = ''; |
| |
|
| while (list($idx, $line) = each($lines)) { |
foreach ($lines as $idx => $line) { |
| $newline = ''; |
$newline = ''; |
| $i = 0; |
$i = 0; |
| |
|
| Line 769 class Mail_mimePart |
|
| Line 771 class Mail_mimePart |
|
| $add_len = strlen($prefix . $suffix) + strlen($name) + 6; |
$add_len = strlen($prefix . $suffix) + strlen($name) + 6; |
| $len = $add_len + strlen($value); |
$len = $add_len + strlen($value); |
| |
|
| while ($len > $maxLength) { |
while ($len > $maxLength) { |
| // We can cut base64-encoded string every 4 characters |
// We can cut base64-encoded string every 4 characters |
| $real_len = floor(($maxLength - $add_len) / 4) * 4; |
$real_len = floor(($maxLength - $add_len) / 4) * 4; |
| $_quote = substr($value, 0, $real_len); |
$_quote = substr($value, 0, $real_len); |