From: Michael Vogel Date: Sun, 18 May 2014 16:59:10 +0000 (+0200) Subject: Content got lost sometimes due to a needless security function (HTML content is handl... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=31886ecd4f55f63f2b0c3d8ab93bad50cbfbae6a;p=friendica.git Content got lost sometimes due to a needless security function (HTML content is handled in the bbcode function) --- 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', '>=')) {