From 8f28e293e68fce760b2052f3d559d9369860ebcd Mon Sep 17 00:00:00 2001 From: Fraenkiman Date: Sun, 26 Feb 2023 04:36:34 +0100 Subject: [PATCH] Update comments.php Splits the encrypted subject. The encrypted subject should not be longer than 76 characters. --- comments.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comments.php b/comments.php index 9fb1653..511e0e2 100644 --- a/comments.php +++ b/comments.php @@ -222,8 +222,8 @@ function commentform() { $fp_config ['general'] ['title'] ), $lang ['comments'] ['mail']); - // for non-ASCII characters in the e-mail header, use RFC 1342 — Encodes data with MIME base64 - @utils_mail($from_mail, "=?utf-8?B?" . base64_encode($lang ['comments'] ['newcomment']) . "?= =?utf-8?B?" . base64_encode($fp_config ['general'] ['title']) . "?=", $mail); + // for non-ASCII characters in the e-mail header use RFC 1342 — Encodes data with MIME base64 and splits the encrypted subject + @utils_mail($from_mail, "=?utf-8?B?" . base64_encode($lang ['comments'] ['newcomment']) . "=?= =?utf-8?B?" . base64_encode($fp_config ['general'] ['title']) . "==?=", $mail); } // if comment is valid, this redirect will clean the postdata