# HG changeset patch # User Dan # Date 1250962269 14400 # Node ID ec1c93c59c2c0187d4c81b6c3dea66787b2ac329 # Parent f0eee185880ab093ba2c80068495f8752f5aa82b Fixed lockup on unclosed HTML tags in wikiformat_process_block() diff -r f0eee185880a -r ec1c93c59c2c includes/functions.php --- a/includes/functions.php Sat Aug 22 13:30:39 2009 -0400 +++ b/includes/functions.php Sat Aug 22 13:31:09 2009 -0400 @@ -1933,7 +1933,7 @@ $prev = ( $i == 0 ) ? '' : $html{ $i - 1 }; $next = ( ( $i + 1 ) == $len ) ? '' : $html { $i + 1 }; $tag_name .= $chr; - if ( $next == '>' ) + if ( $next == '>' || $i > strlen($html) ) break; } // echo '
';