summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--code/bbcode.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/code/bbcode.inc.php b/code/bbcode.inc.php
index b5e0b05..d1cbe0b 100644
--- a/code/bbcode.inc.php
+++ b/code/bbcode.inc.php
@@ -74,9 +74,9 @@
if($found) continue;
- if(!preg_match('(^([^\[]*)\[(.*)$)s', $data, $match)) break;
+ if(!preg_match('(^([^\[]*\[)(.*)$)s', $data, $match)) break;
- $out .= $match[1] . '[';
+ $out .= $match[1];
$data = $match[2];
}