aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-08-09 01:18:36 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-08-09 01:18:36 -0700
commit58c9f516b3e62a6bc168de35dcff759dae01b5d7 (patch)
treef5fcf57e92fc3c5b347d544fb993a8f83b95f792 /include/items.php
parent8ce4814835e10dc579036be9ff4e61077df875ae (diff)
downloadvolse-hubzilla-58c9f516b3e62a6bc168de35dcff759dae01b5d7.tar.gz
volse-hubzilla-58c9f516b3e62a6bc168de35dcff759dae01b5d7.tar.bz2
volse-hubzilla-58c9f516b3e62a6bc168de35dcff759dae01b5d7.zip
private mail isues
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/items.php b/include/items.php
index 78c9cb4dd..f4bc2e876 100755
--- a/include/items.php
+++ b/include/items.php
@@ -1584,12 +1584,10 @@ function get_mail_elements($x) {
$arr['mail_obscured'] = 1;
if($arr['body']) {
$arr['body'] = str_rot47(base64url_encode($arr['body']));
- $arr['body'] = htmlspecialchars($arr['body'],ENT_COMPAT,'UTF-8',false);
}
if($arr['title']) {
$arr['title'] = str_rot47(base64url_encode($arr['title']));
- $arr['title'] = htmlspecialchars($arr['title'],ENT_COMPAT,'UTF-8',false);
}
if($arr['created'] > datetime_convert())
$arr['created'] = datetime_convert();
@@ -3453,8 +3451,10 @@ function mail_store($arr) {
return 0;
}
- if((strpos($arr['body'],'<') !== false) || (strpos($arr['body'],'>') !== false))
- $arr['body'] = escape_tags($arr['body']);
+ if(! $arr['mail_obscured']) {
+ if((strpos($arr['body'],'<') !== false) || (strpos($arr['body'],'>') !== false))
+ $arr['body'] = escape_tags($arr['body']);
+ }
if(array_key_exists('attach',$arr) && is_array($arr['attach']))
$arr['attach'] = json_encode($arr['attach']);