aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Editpost.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-05-19 00:56:51 -0700
committerredmatrix <git@macgirvin.com>2016-05-19 00:56:51 -0700
commit50d1d06b0324737ca6dc7dab43e42217ee9381b4 (patch)
tree020b7ae91fe65dda557a2eacbb082385ba74d66d /Zotlabs/Module/Editpost.php
parent93a7df5a1b9ac260657ba789760cb9e4c11544a7 (diff)
downloadvolse-hubzilla-50d1d06b0324737ca6dc7dab43e42217ee9381b4.tar.gz
volse-hubzilla-50d1d06b0324737ca6dc7dab43e42217ee9381b4.tar.bz2
volse-hubzilla-50d1d06b0324737ca6dc7dab43e42217ee9381b4.zip
issue #391 - htmlspecialchars_decode before firing up jot, which re-encodes
Diffstat (limited to 'Zotlabs/Module/Editpost.php')
-rw-r--r--Zotlabs/Module/Editpost.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Editpost.php b/Zotlabs/Module/Editpost.php
index 43edf2c00..da859de3e 100644
--- a/Zotlabs/Module/Editpost.php
+++ b/Zotlabs/Module/Editpost.php
@@ -87,11 +87,11 @@ class Editpost extends \Zotlabs\Web\Controller {
'hide_location' => true,
'mimetype' => $itm[0]['mimetype'],
'ptyp' => $itm[0]['obj_type'],
- 'body' => undo_post_tagging($itm[0]['body']),
+ 'body' => htmlspecialchars_decode(undo_post_tagging($itm[0]['body']),ENT_COMPAT),
'post_id' => $post_id,
'defloc' => $channel['channel_location'],
'visitor' => true,
- 'title' => htmlspecialchars($itm[0]['title'],ENT_COMPAT,'UTF-8'),
+ 'title' => htmlspecialchars_decode($itm[0]['title'],ENT_COMPAT),
'category' => $category,
'showacl' => false,
'profile_uid' => $owner_uid,