Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, May 1, 2026

Diff for Metafox/lib/Mail/mimePart.php between version 1.1 and 1.2

version 1.1, 2005/06/05 12:14:30 version 1.2, 2005/11/07 20:37:49
Line 1 
Line 1 
 <?php  <?php
 // +-----------------------------------------------------------------------+  // +-----------------------------------------------------------------------+
 // | Copyright (c) 2002  Richard Heyes                                     |  // | Copyright (c) 2002-2003  Richard Heyes                                     |
 // | All rights reserved.                                                  |  // | All rights reserved.                                                  |
 // |                                                                       |  // |                                                                       |
 // | Redistribution and use in source and binary forms, with or without    |  // | Redistribution and use in source and binary forms, with or without    |
Line 219  class Mail_mimePart {
Line 219  class Mail_mimePart {
   
         if (!empty($this->_subparts)) {          if (!empty($this->_subparts)) {
             srand((double)microtime()*1000000);              srand((double)microtime()*1000000);
             $boundary = '=_' . md5(uniqid(rand()) . microtime());              $boundary = '=_' . md5(rand() . microtime());
             $this->_headers['Content-Type'] .= ';' . MAIL_MIMEPART_CRLF . "\t" . 'boundary="' . $boundary . '"';              $this->_headers['Content-Type'] .= ';' . MAIL_MIMEPART_CRLF . "\t" . 'boundary="' . $boundary . '"';
   
             // Add body parts to $subparts              // Add body parts to $subparts
Line 328  class Mail_mimePart {
Line 328  class Mail_mimePart {
                 if (($dec == 32) AND ($i == ($linlen - 1))){    // convert space at eol only                  if (($dec == 32) AND ($i == ($linlen - 1))){    // convert space at eol only
                     $char = '=20';                      $char = '=20';
   
                   } elseif(($dec == 9) AND ($i == ($linlen - 1))) {  // convert tab at eol only
                       $char = '=09';
                 } elseif($dec == 9) {                  } elseif($dec == 9) {
                     ; // Do nothing if a tab.                      ; // Do nothing if a tab.
                 } elseif(($dec == 61) OR ($dec < 32 ) OR ($dec > 126)) {                  } elseif(($dec == 61) OR ($dec < 32 ) OR ($dec > 126)) {

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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