X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fimap_messages.php;h=cdd240a82b6642fd3d652a5b6a946ac9de4df69b;hb=cbdc56211e121e2676782da26828959da364ec52;hp=57bc8fe3c6472fd50149acdaccff6cd1102aa638;hpb=e5b8fc824dfc8565c7c58e46d93f78b071af72d0;p=squirrelmail.git diff --git a/functions/imap_messages.php b/functions/imap_messages.php index 57bc8fe3..cdd240a8 100755 --- a/functions/imap_messages.php +++ b/functions/imap_messages.php @@ -1,4 +1,4 @@ - 0) { - $bound = substr($bound, $pos, strpos($line, " ", $pos)); - } else { - $bound = substr($bound, $pos); - } - $bound = str_replace("\"", "", $bound); - $header["BOUNDARY"] = $bound; + if (eregi("boundary=\"([^\"]+)\"", $line, $regs)) { + $header["BOUNDARY"] = $regs[1]; } /** Detect the charset **/