prevent tag recursion on shared posts

This commit is contained in:
friendica
2012-10-08 18:04:12 +11:00
parent 3c04676a32
commit ef22c1a9b3
3 changed files with 12 additions and 4 deletions

View File

@@ -148,6 +148,10 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) {
$Text = str_replace("<", "&lt;", $Text);
$Text = str_replace(">", "&gt;", $Text);
// This only matters when looking for tags - otherwise has no meaning
$Text = preg_replace("/\[share\](.*?)\[\/share\]/ism", '$1', $Text);
// Convert new line chars to html <br /> tags
// nlbr seems to be hopelessly messed up