From e785ea184e3beae26d2d949257eae6a6b3d55fa9 Mon Sep 17 00:00:00 2001 From: Fraenkiman Date: Sun, 26 Feb 2023 13:40:42 +0100 Subject: [PATCH 1/2] Update plugin.commentcenter.php Fixes #211 An email notification is now sent when there is a new comment to approve and when the subject in the email header contains umlauts. --- fp-plugins/commentcenter/plugin.commentcenter.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fp-plugins/commentcenter/plugin.commentcenter.php b/fp-plugins/commentcenter/plugin.commentcenter.php index 9df6c0f..9813990 100644 --- a/fp-plugins/commentcenter/plugin.commentcenter.php +++ b/fp-plugins/commentcenter/plugin.commentcenter.php @@ -438,7 +438,8 @@ class plugin_commentcenter { $fp_config ['general'] ['title'] ), $text); - return @utils_mail($from_mail, $subject, $text); + // for non-ASCII characters in the e-mail header use RFC 1342 — Encodes data with MIME base64 + return @utils_mail($from_mail, "=?utf-8?B?" . base64_encode($subject) . "?=", $text); } } From 91cbfeeaebe50f42c21f2475d1000e6d9b0a15bf Mon Sep 17 00:00:00 2001 From: Fraenkiman Date: Mon, 27 Feb 2023 23:01:17 +0100 Subject: [PATCH 2/2] Update plugin.commentcenter.php little correction --- fp-plugins/commentcenter/plugin.commentcenter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fp-plugins/commentcenter/plugin.commentcenter.php b/fp-plugins/commentcenter/plugin.commentcenter.php index 9813990..966d4b1 100644 --- a/fp-plugins/commentcenter/plugin.commentcenter.php +++ b/fp-plugins/commentcenter/plugin.commentcenter.php @@ -439,7 +439,7 @@ class plugin_commentcenter { ), $text); // for non-ASCII characters in the e-mail header use RFC 1342 — Encodes data with MIME base64 - return @utils_mail($from_mail, "=?utf-8?B?" . base64_encode($subject) . "?=", $text); + return @utils_mail($from_mail, '=?utf-8?B?' . base64_encode($subject) . '?=', $text); } }