From 1eff570926fbf1c71c109eac0deb2765d3d002c8 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 9 Jan 2017 16:57:30 +0100 Subject: [PATCH] Consider whitespaces when trying to translate <, >, <= and >= signs in HTML: - Fix some mails get cut off after switching to plain-text mode --- api/src/Mail/Html.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/src/Mail/Html.php b/api/src/Mail/Html.php index 7a7dd68190..cf1c502df7 100644 --- a/api/src/Mail/Html.php +++ b/api/src/Mail/Html.php @@ -320,10 +320,10 @@ class Html 12 => '/
/', 13 => '~
~si', 14 => '~]*>~si', - 15 => '/<=([1234567890])/', - 16 => '/>=([1234567890])/', - 17 => '/<([1234567890])/', - 18 => '/>([1234567890])/', + 15 => '/<=\s*([1234567890])/', + 16 => '/>=\s*([1234567890])/', + 17 => '/<\s*([1234567890])/', + 18 => '/>\s*([1234567890])/', ); $Replace = array ( 0 => "\r\n",