diff options
author | friendica <info@friendica.com> | 2012-11-03 03:59:37 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-11-03 03:59:37 -0700 |
commit | 8a983a82eccb68472ee9a39c5c0072dd879cddab (patch) | |
tree | a9b53e436b082ec1a713f83968d1e45180a841fe /include/bbcode.php | |
parent | 1971b9645206abe8eee3b5fe9f355fef4e23f914 (diff) | |
download | volse-hubzilla-8a983a82eccb68472ee9a39c5c0072dd879cddab.tar.gz volse-hubzilla-8a983a82eccb68472ee9a39c5c0072dd879cddab.tar.bz2 volse-hubzilla-8a983a82eccb68472ee9a39c5c0072dd879cddab.zip |
remove recursive share tags
Diffstat (limited to 'include/bbcode.php')
-rw-r--r-- | include/bbcode.php | 2 |
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 |