Conflicts:
	include/bbcode.php
This commit is contained in:
friendica 2012-06-25 16:05:42 -07:00
commit fad2679c7e
5 changed files with 5 additions and 4 deletions

View file

@ -162,6 +162,7 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) {
// handle nested lists
$endlessloop = 0;
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)) {