diff options
author | Simon L'nu <simon.lnu@gmail.com> | 2012-06-25 18:49:36 -0400 |
---|---|---|
committer | Simon L'nu <simon.lnu@gmail.com> | 2012-06-25 18:49:36 -0400 |
commit | 939ebe16f82f4aca9b4d0cf70960fe6495fae49c (patch) | |
tree | 23fac83ac88374c472778caa1b3b8d9a2f45a366 | |
parent | eb6bf7e7fad9877e25eda1cbf4f6d0044b984341 (diff) | |
download | volse-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>
-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 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); |