issue #391 - htmlspecialchars_decode before firing up jot, which re-encodes

This commit is contained in:
redmatrix 2016-05-19 00:56:51 -07:00
parent 93a7df5a1b
commit 50d1d06b03

View File

@ -87,11 +87,11 @@ class Editpost extends \Zotlabs\Web\Controller {
'hide_location' => true, 'hide_location' => true,
'mimetype' => $itm[0]['mimetype'], 'mimetype' => $itm[0]['mimetype'],
'ptyp' => $itm[0]['obj_type'], '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, 'post_id' => $post_id,
'defloc' => $channel['channel_location'], 'defloc' => $channel['channel_location'],
'visitor' => true, 'visitor' => true,
'title' => htmlspecialchars($itm[0]['title'],ENT_COMPAT,'UTF-8'), 'title' => htmlspecialchars_decode($itm[0]['title'],ENT_COMPAT),
'category' => $category, 'category' => $category,
'showacl' => false, 'showacl' => false,
'profile_uid' => $owner_uid, 'profile_uid' => $owner_uid,