aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorSimon L'nu <simon.lnu@gmail.com>2012-06-25 18:49:36 -0400
committerSimon L'nu <simon.lnu@gmail.com>2012-06-25 18:49:36 -0400
commit939ebe16f82f4aca9b4d0cf70960fe6495fae49c (patch)
tree23fac83ac88374c472778caa1b3b8d9a2f45a366 /include/bbcode.php
parenteb6bf7e7fad9877e25eda1cbf4f6d0044b984341 (diff)
downloadvolse-hubzilla-939ebe16f82f4aca9b4d0cf70960fe6495fae49c.tar.gz
volse-hubzilla-939ebe16f82f4aca9b4d0cf70960fe6495fae49c.tar.bz2
volse-hubzilla-939ebe16f82f4aca9b4d0cf70960fe6495fae49c.zip
fix typo and syntax error
Signed-off-by: Simon L'nu <simon.lnu@gmail.com>
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 38d1e658f..36d480a17 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -162,7 +162,7 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) {
// handle nested lists
$endlessloop = 0;
- while ((strpos($Text, "[/list]") !== false) && (strpos($Text, "[list") !== false)
+ while ((strpos($Text, "[/list]") !== false) && (strpos($Text, "[list]") !== false) &&
(strpos($Text, "[/ol]") !== false) && (strpos($Text, "[ol]") !== false) &&
(strpos($Text, "[/ul]") !== false) && (strpos($Text, "[ul]") !== false) && (++$endlessloop < 20)) {
$Text = preg_replace("/\[list\](.*?)\[\/list\]/ism", '<ul class="listbullet" style="list-style-type: circle;">$1</ul>' ,$Text);