aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-02-15 15:28:32 -0800
committerfriendica <info@friendica.com>2012-02-15 15:28:32 -0800
commitd05442610158eb21cd3e9b9b3cd8cd3e5d56c13c (patch)
tree3f5c295ceb5f488394becb28458ff27c2e6df24a /mod/item.php
parentc965074e5343bf97a8d077e1dc00384f36f90acc (diff)
downloadvolse-hubzilla-d05442610158eb21cd3e9b9b3cd8cd3e5d56c13c.tar.gz
volse-hubzilla-d05442610158eb21cd3e9b9b3cd8cd3e5d56c13c.tar.bz2
volse-hubzilla-d05442610158eb21cd3e9b9b3cd8cd3e5d56c13c.zip
encode email headers on message deliveries
Diffstat (limited to 'mod/item.php')
-rwxr-xr-xmod/item.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/item.php b/mod/item.php
index d5dcfccbd..e59b45acc 100755
--- a/mod/item.php
+++ b/mod/item.php
@@ -17,6 +17,7 @@
require_once('include/crypto.php');
require_once('include/enotify.php');
+require_once('include/email.php');
function item_post(&$a) {
@@ -854,8 +855,8 @@ function item_post(&$a) {
$disclaimer .= sprintf( t('You may visit them online at %s'), $a->get_baseurl() . '/profile/' . $a->user['nickname']) . EOL;
$disclaimer .= t('Please contact the sender by replying to this post if you do not wish to receive these messages.') . EOL;
- $subject = '[Friendica]' . ' ' . sprintf( t('%s posted an update.'),$a->user['username']);
- $headers = 'From: ' . $a->user['username'] . ' <' . $a->user['email'] . '>' . "\n";
+ $subject = email_header_encode('[Friendica]' . ' ' . sprintf( t('%s posted an update.'),$a->user['username']),'UTF-8');
+ $headers = 'From: ' . email_header_encode($a->user['username'],'UTF-8') . ' <' . $a->user['email'] . '>' . "\n";
$headers .= 'MIME-Version: 1.0' . "\n";
$headers .= 'Content-Type: text/html; charset=UTF-8' . "\n";
$headers .= 'Content-Transfer-Encoding: 8bit' . "\n\n";