mirror of
https://github.com/friendica/friendica
synced 2025-04-27 00:30:10 +00:00
convert html entities to utf-8 before email header encoding
This commit is contained in:
parent
0ca4fa78c8
commit
38ccd2e655
3 changed files with 216 additions and 208 deletions
|
@ -402,8 +402,8 @@ class enotify {
|
|||
*/
|
||||
static public function send($params) {
|
||||
|
||||
$fromName = email_header_encode($params['fromName'],'UTF-8');
|
||||
$messageSubject = email_header_encode($params['messageSubject'],'UTF-8');
|
||||
$fromName = email_header_encode(html_entity_decode($params['fromName'],ENT_QUOTES,'UTF-8'),'UTF-8');
|
||||
$messageSubject = email_header_encode(html_entity_decode($params['messageSubject'],ENT_QUOTES,'UTF-8'),'UTF-8');
|
||||
|
||||
// generate a mime boundary
|
||||
$mimeBoundary =rand(0,9)."-"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue