diff options
author | zotlabs <mike@macgirvin.com> | 2017-03-18 16:41:43 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-03-18 16:41:43 -0700 |
commit | 4afeefb5ce2119541a6d2a0a0b332c7a9a59a2b4 (patch) | |
tree | c481814a4031c480f99e480e00bbd7bb1c837f91 /Zotlabs/Module/Editblock.php | |
parent | d9037589407162f51578856b084baaa5353a8a04 (diff) | |
download | volse-hubzilla-4afeefb5ce2119541a6d2a0a0b332c7a9a59a2b4.tar.gz volse-hubzilla-4afeefb5ce2119541a6d2a0a0b332c7a9a59a2b4.tar.bz2 volse-hubzilla-4afeefb5ce2119541a6d2a0a0b332c7a9a59a2b4.zip |
various input filter fixes
Diffstat (limited to 'Zotlabs/Module/Editblock.php')
-rw-r--r-- | Zotlabs/Module/Editblock.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Zotlabs/Module/Editblock.php b/Zotlabs/Module/Editblock.php index 654e2251d..8a7e87a09 100644 --- a/Zotlabs/Module/Editblock.php +++ b/Zotlabs/Module/Editblock.php @@ -98,6 +98,11 @@ class Editblock extends \Zotlabs\Web\Controller { $mimetype = $itm[0]['mimetype']; + $content = $itm[0]['body']; + if($itm[0]['mimetype'] === 'text/markdown') + $content = \Zotlabs\Lib\MarkdownSoap::unescape($itm[0]['body']); + + $rp = 'blocks/' . $channel['channel_address']; $x = array( @@ -117,7 +122,7 @@ class Editblock extends \Zotlabs\Web\Controller { 'ptyp' => $itm[0]['type'], 'mimeselect' => true, 'mimetype' => $itm[0]['mimetype'], - 'body' => undo_post_tagging($itm[0]['body']), + 'body' => undo_post_tagging($content), 'post_id' => $post_id, 'visitor' => true, 'title' => htmlspecialchars($itm[0]['title'],ENT_COMPAT,'UTF-8'), |