X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Femail.php;fp=include%2Femail.php;h=b43ae0dc1c200614a94e4beef83a04b543f65b99;hb=355c42cb309eb1313097411067ca999b699aa620;hp=8ea8145fb65acc9a58443a8139f3217ce3ee036a;hpb=cbf4544887c7f496f2b2312727fe7bcb64a6d6c8;p=friendica.git diff --git a/include/email.php b/include/email.php old mode 100755 new mode 100644 index 8ea8145fb6..b43ae0dc1c --- a/include/email.php +++ b/include/email.php @@ -74,7 +74,7 @@ function email_msg_headers($mbox,$uid) { } -function email_get_msg($mbox,$uid) { +function email_get_msg($mbox,$uid, $reply) { $ret = array(); $struc = (($mbox && $uid) ? @imap_fetchstructure($mbox,$uid,FT_UID) : null); @@ -114,7 +114,7 @@ function email_get_msg($mbox,$uid) { $ret['body'] = removegpg($ret['body']); $msg = removesig($ret['body']); $ret['body'] = $msg['body']; - $ret['body'] = convertquote($ret['body'], false); + $ret['body'] = convertquote($ret['body'], $reply); if (trim($html) != '') $ret['body'] = removelinebreak($ret['body']); @@ -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; }