From: Craig Andrews Date: Tue, 4 May 2010 03:02:25 +0000 (-0400) Subject: When handling incoming mail, skip everything after a blank line if we already have... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4fe00a3075c10c5b2168ac2b4996a32055a799ee;p=quix0rs-gnu-social.git When handling incoming mail, skip everything after a blank line if we already have content --- diff --git a/lib/mailhandler.php b/lib/mailhandler.php index 890f6d5b49..e9ba418399 100644 --- a/lib/mailhandler.php +++ b/lib/mailhandler.php @@ -265,6 +265,10 @@ class MailHandler if (preg_match('/^\s*Begin\s+forward/', $line)) { break; } + // skip everything after a blank line if we already have content + if ($output !== '' && $line === '') { + break; + } $output .= ' ' . $line; }