From 4a19059217a1f06232bd7b2f17dd3dfdb258d7d8 Mon Sep 17 00:00:00 2001 From: RainLoop Date: Wed, 20 Sep 2017 22:47:08 +0300 Subject: [PATCH] UTF8-Subjects not working (close #1479) --- rainloop/v/0.0.0/app/libraries/MailSo/Base/Utils.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rainloop/v/0.0.0/app/libraries/MailSo/Base/Utils.php b/rainloop/v/0.0.0/app/libraries/MailSo/Base/Utils.php index 372a070e2..2a8b8ef6d 100644 --- a/rainloop/v/0.0.0/app/libraries/MailSo/Base/Utils.php +++ b/rainloop/v/0.0.0/app/libraries/MailSo/Base/Utils.php @@ -668,7 +668,8 @@ END; $aEncodeArray = array(''); $aMatch = array(); - \preg_match_all('/=\?[^\?]+\?[q|b|Q|B]\?[^\?]*(\?=)/', $sValue, $aMatch); +// \preg_match_all('/=\?[^\?]+\?[q|b|Q|B]\?[^\?]*?\?=/', $sValue, $aMatch); + \preg_match_all('/=\?[^\?]+\?[q|b|Q|B]\?.*?\?=/', $sValue, $aMatch); if (isset($aMatch[0]) && \is_array($aMatch[0])) {