Content got lost sometimes due to a needless security function (HTML content is handled in the bbcode function)

This commit is contained in:
Michael Vogel 2014-05-18 18:59:10 +02:00
parent 7cc2723e2d
commit 31886ecd4f
1 changed files with 3 additions and 3 deletions

View File

@ -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', '>=')) {