Update comments.php

Splits the encrypted subject. The encrypted subject should not be longer than 76 characters.
This commit is contained in:
Fraenkiman 2023-02-26 04:36:34 +01:00
parent c1dae9205f
commit 8f28e293e6

View File

@ -222,8 +222,8 @@ function commentform() {
$fp_config ['general'] ['title'] $fp_config ['general'] ['title']
), $lang ['comments'] ['mail']); ), $lang ['comments'] ['mail']);
// for non-ASCII characters in the e-mail header, use RFC 1342 — Encodes data with MIME base64 // 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); @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 // if comment is valid, this redirect will clean the postdata