aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-11-15 18:03:37 -0800
committerredmatrix <redmatrix@redmatrix.me>2015-11-15 18:03:37 -0800
commit3d80073a0e1e0847cad2e2fbe86aa66a1fbec983 (patch)
treeb00acbf6d90a2a57d9478a556d334387d6720872 /mod
parent959c3ba89d42340b1e675435d5a792e592d2bc0a (diff)
downloadvolse-hubzilla-3d80073a0e1e0847cad2e2fbe86aa66a1fbec983.tar.gz
volse-hubzilla-3d80073a0e1e0847cad2e2fbe86aa66a1fbec983.tar.bz2
volse-hubzilla-3d80073a0e1e0847cad2e2fbe86aa66a1fbec983.zip
revert html in markdown for posts, but trim the input before processing the markdown
Diffstat (limited to 'mod')
-rw-r--r--mod/item.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/item.php b/mod/item.php
index 5bf59de26..b66d71797 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -473,8 +473,8 @@ function item_post(&$a) {
require_once('include/text.php');
if($uid && $uid == $profile_uid && feature_enabled($uid,'markdown')) {
require_once('include/bb2diaspora.php');
+ $body = escape_tags(trim($body));
$body = str_replace("\n",'<br />', $body);
- $body = purify_html($body);
$body = preg_replace_callback('/\[share(.*?)\]/ism','share_shield',$body);
$body = diaspora2bb($body,true);