aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/bbcode.php')
-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