Update contact.php

splits the encrypted subject
This commit is contained in:
Fraenkiman 2023-02-26 04:43:16 +01:00
parent 1c9097439e
commit 9a628f8153

View File

@ -111,8 +111,8 @@ function contact_form() {
$msg .= "{$lang['contact']['notification']['content']} \n{$validationResult['content']}\n"; $msg .= "{$lang['contact']['notification']['content']} \n{$validationResult['content']}\n";
// send notification mail to site admin // send notification mail to site admin
// 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
$success = @utils_mail((isset($validationResult ['email']) ? $validationResult ['email'] : $fp_config ['general'] ['email']), "=?utf-8?B?" . base64_encode($lang ['contact'] ['notification'] ['subject']) . "?= =?utf-8?B?" . base64_encode($fp_config ['general'] ['title']) . "?=", $msg); $success = @utils_mail((isset($validationResult ['email']) ? $validationResult ['email'] : $fp_config ['general'] ['email']), "=?utf-8?B?" . base64_encode($lang ['contact'] ['notification'] ['subject']) . "=?= =?utf-8?B?" . base64_encode($fp_config ['general'] ['title']) . "==?=", $msg);
system_seterr('contact', $success ? 1 : -1); system_seterr('contact', $success ? 1 : -1);
utils_redirect(basename(__FILE__)); utils_redirect(basename(__FILE__));
} }