From: Simon L'nu Date: Mon, 25 Jun 2012 22:49:36 +0000 (-0400) Subject: fix typo and syntax error X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=939ebe16f82f4aca9b4d0cf70960fe6495fae49c;p=friendica.git fix typo and syntax error Signed-off-by: Simon L'nu --- diff --git a/include/bbcode.php b/include/bbcode.php index 38d1e658f9..36d480a178 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", '' ,$Text);