From 31886ecd4f55f63f2b0c3d8ab93bad50cbfbae6a Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 18 May 2014 18:59:10 +0200 Subject: [PATCH] Content got lost sometimes due to a needless security function (HTML content is handled in the bbcode function) --- include/items.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/items.php b/include/items.php index 27be613d70..94285e61ba 100755 --- a/include/items.php +++ b/include/items.php @@ -990,9 +990,9 @@ function item_store($arr,$force_parent = false) { $arr['type'] = 'remote'; // Shouldn't happen but we want to make absolutely sure it doesn't leak from a plugin. - - if((strpos($arr['body'],'<') !== false) || (strpos($arr['body'],'>') !== false)) - $arr['body'] = strip_tags($arr['body']); + // Deactivated, since the bbcode parser can handle with it - and it destroys posts with some smileys that contain "<" + //if((strpos($arr['body'],'<') !== false) || (strpos($arr['body'],'>') !== false)) + // $arr['body'] = strip_tags($arr['body']); if (version_compare(PHP_VERSION, '5.3.0', '>=')) {