WordPress.org

Make WordPress Core

Ticket #4337: 4337.diff

File 4337.diff, 618 bytes (added by Nazgul, 7 years ago)
  • wp-includes/class-pop3.php

     
    367367        while ( !ereg("^\.\r\n",$line)) 
    368368        { 
    369369            $line = fgets($fp,$buffer); 
    370             if (preg_match("/^\s+/", $line) && $count > 0) { 
     370            if ( '.' == $line{0} && !ereg("^\.\r\n",$line) ) $line = substr($line,1); } 
     371            if (preg_match("/^\s+\S+/", $line) && $count > 0) { 
    371372                $MsgArray[$count-1] .= $line; 
    372373                continue; 
    373374            }