Update contact.php
splits the encrypted subject
This commit is contained in:
parent
1c9097439e
commit
9a628f8153
@ -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__));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user