]> git.mxchange.org Git - friendica.git/commitdiff
Content got lost sometimes due to a needless security function (HTML content is handl...
authorMichael Vogel <icarus@dabo.de>
Sun, 18 May 2014 16:59:10 +0000 (18:59 +0200)
committerMichael Vogel <icarus@dabo.de>
Sun, 18 May 2014 16:59:10 +0000 (18:59 +0200)
include/items.php

index 27be613d70996e082360efee9b57ecc53eb8ead2..94285e61baff57a3609867a2e442e409ad7c794c 100755 (executable)
@@ -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', '>=')) {