Ticket #4337: class-pop3.php.patch
File class-pop3.php.patch, 896 bytes (added by , 17 years ago) |
---|
-
wp-includes/class-pop3.php
old new 367 367 while ( !ereg("^\.\r\n",$line)) 368 368 { 369 369 $line = fgets($fp,$buffer); 370 if (preg_match("/^\s+ /", $line) && $count > 0) {370 if (preg_match("/^\s+\S+/", $line) && $count > 0) { 371 371 $MsgArray[$count-1] .= $line; 372 372 continue; 373 373 } 374 if(empty($line)) { break; } 374 if ((ereg("^\.\r\n",$line)) || (empty($line))) { break; } 375 376 //Strip any extra leading periods and store the result 377 if (ereg("^\.\.", $line)) { 378 $MsgArray[$count] = substr($line, 1); 379 } else { 380 $MsgArray[$count] = $line; 381 } 375 382 376 $MsgArray[$count] = $line;377 383 $count++; 378 384 } 379 385 return $MsgArray;