X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Femail.php;h=b43ae0dc1c200614a94e4beef83a04b543f65b99;hb=b618715fc676fce71303816c0d49d8aad8beb0b6;hp=43f04d7c2010f27f7d0ebcdfd4562322b7111c9d;hpb=8a1f175df022e2fc2c2162aa314ea34454482d48;p=friendica.git diff --git a/include/email.php b/include/email.php old mode 100755 new mode 100644 index 43f04d7c20..b43ae0dc1c --- a/include/email.php +++ b/include/email.php @@ -56,7 +56,7 @@ function email_msg_headers($mbox,$uid) { $raw_header = (($mbox && $uid) ? @imap_fetchheader($mbox,$uid,FT_UID) : ''); $raw_header = str_replace("\r",'',$raw_header); $ret = array(); - $h = split("\n",$raw_header); + $h = explode("\n",$raw_header); if(count($h)) foreach($h as $line ) { if (preg_match("/^[a-zA-Z]/", $line)) { @@ -250,7 +250,7 @@ function email_header_encode($in_str, $charset) { // remove trailing spacer and // add start and end delimiters - $spacer = preg_quote($spacer); + $spacer = preg_quote($spacer,'/'); $out_str = preg_replace("/" . $spacer . "$/", "", $out_str); $out_str = $start . $out_str . $end; }