remove recursive share tags

This commit is contained in:
friendica 2012-11-03 03:59:37 -07:00
parent 1971b96452
commit 8a983a82ec

View File

@ -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 <br /> tags