From 8a983a82eccb68472ee9a39c5c0072dd879cddab Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 3 Nov 2012 03:59:37 -0700 Subject: remove recursive share tags --- include/bbcode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/bbcode.php b/include/bbcode.php index dd0cc6958..881f5777b 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -143,7 +143,7 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) { // This only matters when looking for tags - otherwise has no meaning - $Text = preg_replace("/\[share\](.*?)\[\/share\]/ism", '$1', $Text); + $Text = str_replace(array('[share]','[/share]'), array('',''), $Text); // Convert new line chars to html
tags -- cgit v1.2.3