aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-11-03 03:59:37 -0700
committerfriendica <info@friendica.com>2012-11-03 03:59:37 -0700
commit8a983a82eccb68472ee9a39c5c0072dd879cddab (patch)
treea9b53e436b082ec1a713f83968d1e45180a841fe /include
parent1971b9645206abe8eee3b5fe9f355fef4e23f914 (diff)
downloadvolse-hubzilla-8a983a82eccb68472ee9a39c5c0072dd879cddab.tar.gz
volse-hubzilla-8a983a82eccb68472ee9a39c5c0072dd879cddab.tar.bz2
volse-hubzilla-8a983a82eccb68472ee9a39c5c0072dd879cddab.zip
remove recursive share tags
Diffstat (limited to 'include')
-rw-r--r--include/bbcode.php2
1 files changed, 1 insertions, 1 deletions
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 <br /> tags