aboutsummaryrefslogtreecommitdiffstats
path: root/include/enotify.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-05-01 15:49:22 -0700
committerfriendica <info@friendica.com>2012-05-01 15:49:22 -0700
commit38ccd2e6554bac4f0f1bb927eec7f228f21e74bf (patch)
tree682af6c02f3b244aefbb09631a8625fbd291e778 /include/enotify.php
parent0ca4fa78c84fb474bf5b86008c4c1ba7b1aa103f (diff)
downloadvolse-hubzilla-38ccd2e6554bac4f0f1bb927eec7f228f21e74bf.tar.gz
volse-hubzilla-38ccd2e6554bac4f0f1bb927eec7f228f21e74bf.tar.bz2
volse-hubzilla-38ccd2e6554bac4f0f1bb927eec7f228f21e74bf.zip
convert html entities to utf-8 before email header encoding
Diffstat (limited to 'include/enotify.php')
-rw-r--r--include/enotify.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/enotify.php b/include/enotify.php
index 8385bdec5..ca134ac86 100644
--- a/include/enotify.php
+++ b/include/enotify.php
@@ -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)."-"