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.
This commit is contained in:
Fraenkiman 2023-02-26 13:40:42 +01:00
parent b60a51cf92
commit e785ea184e

View File

@ -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);
}
}