Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, October 14, 2026

Diff for Metafox/lib/Mail/mimePart.php between version 1.5 and 1.6

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);

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top