Changeset 4938

Show
Ignore:
Timestamp:
02/25/07 13:33:03 (1 year ago)
Author:
markjaquith
Message:

Handle multi-line subjects in class-pop3.php. Props nreid. fixes #3836

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/class-pop3.php

    r2066 r4938  
    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;