From 640fc0c81322d20e084ef766907a9e728e60a29d Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 15 Sep 2020 08:30:45 +0200 Subject: [PATCH] fix illegal string offset --- api/src/Mail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Mail.php b/api/src/Mail.php index e7cde7e16d..3dc902c5e2 100644 --- a/api/src/Mail.php +++ b/api/src/Mail.php @@ -1691,7 +1691,7 @@ class Mail // check if client set a wrong charset and content is utf-8 --> use utf-8 if (strtolower($charSet) !='utf-8' && preg_match('//u', $headerObject['BODYPREVIEW'])) { - $charSet['charSet'] = 'UTF-8'; + $charSet = 'UTF-8'; } // add line breaks to $bodyParts //error_log(__METHOD__.' ('.__LINE__.') '.' Charset:'.$bodyParts[$i]['charSet'].'->'.$bodyParts[$i]['body']);