[wp-trac] [WordPress Trac] #33815: Equal signs replace characters in HTML emails sent to subscribers about new posts

WordPress Trac noreply at wordpress.org
Thu Sep 10 23:27:14 UTC 2015


#33815: Equal signs replace characters in HTML emails sent to subscribers about new
posts
----------------------------+-----------------------------
 Reporter:  junipersystems  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Mail            |    Version:  4.3
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 OS: Windows Server 2008 R2
 Mail Server: MS Exchange Server

 Problem not in previous versions. Problem traced to wp-includes\class-
 phpmailer.php lines 2563 - 2578.

 Fixed by making following changes (reverted to previous version):

 {{{

 // Begin changes made 2015-09-10 - commented out line 2564, added line
 2565 ---------------------------------------------------------------------
 //           return $this->fixEOL(quoted_printable_encode($string));
             return quoted_printable_encode($string);
 // End of changes
 -----------------------------------------------------------------------------------------------------------------------------------------------
         }
         // Fall back to a pure PHP implementation
         $string = str_replace(
             array('%20', '%0D%0A.', '%0D%0A', '%'),
             array(' ', "\r\n=2E", "\r\n", '='),
             rawurlencode($string)
         );
         $string = preg_replace('/[^\r\n]{' . ($line_max - 3) .
 '}[^=\r\n]{2}/', "$0=\r\n", $string);
 // Begin changes made 2015-09-10 - commented out line 2576, added line
 2577 ---------------------------------------------------------------------
 //        return $this->fixEOL($string);
         return $string;
 // End of changes
 -----------------------------------------------------------------------------------------------------------------------------------------------

 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33815>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list