Ticket #3836: 3836.diff

File 3836.diff, 0.8 kB (added by Nazgul, 2 years ago)
  • wp-includes/class-pop3.php

    old new  
    393393        $count = 0; 
    394394        $MsgArray = array(); 
    395395 
    396         $line = fgets($fp,$buffer)
     396        $line = ""
    397397        while ( !ereg("^\.\r\n",$line)) 
    398398        { 
     399            $line = fgets($fp,$buffer); 
     400            if (preg_match("/^\s+/", $line) && $count > 0) { 
     401                $MsgArray[$count-1] .= $line; 
     402                continue; 
     403            } 
     404            if(empty($line))    { break; } 
     405 
    399406            $MsgArray[$count] = $line; 
    400407            $count++; 
    401             $line = fgets($fp,$buffer); 
    402             if(empty($line))    { break; } 
    403408        } 
    404409        return $MsgArray; 
    405410    }