From: Mike Macgirvin Date: Thu, 9 Sep 2010 09:00:01 +0000 (-0700) Subject: more fixes from landing X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c59948f1dc25a49d37f9744f6b643968cb2134da;p=friendica.git more fixes from landing --- diff --git a/include/html2bbcode.php b/include/html2bbcode.php index 2ae0df8f68..80841375e8 100644 --- a/include/html2bbcode.php +++ b/include/html2bbcode.php @@ -17,8 +17,8 @@ $htmltags = array( '/\(.*?)\<\/strong\>/is', '/\(.*?)\<\/a\>/is', '/\(.*?)\<\/code\>/is', - '/\(.*?)\<\/font\>', - '/\(.*?)\<\/font\>', + '/\(.*?)\<\/font\>/is', + '/\(.*?)\<\/font\>/is', '/\(.*?)\<\/blockquote\>/is', ); diff --git a/include/items.php b/include/items.php index 587207abf9..a66aeff472 100644 --- a/include/items.php +++ b/include/items.php @@ -233,7 +233,7 @@ function get_atom_elements($item) { // html. - +echo "test1" . $res['body']; if(strpos($res['body'],'<')) { $res['body'] = preg_replace('#]+>.+?' . 'http://www.youtube.com/((?:v|cp)/[A-Za-z0-9\-_=]+).+?#s', @@ -249,8 +249,10 @@ function get_atom_elements($item) { $purifier = new HTMLPurifier($config); $res['body'] = $purifier->purify($res['body']); } +echo "test2" . $res['body']; $res['body'] = html2bbcode($res['body']); +echo "test3" . $res['body']; $allow = $item->get_item_tags(NAMESPACE_DFRN,'comment-allow'); if($allow && $allow[0]['data'] == 1)