includes/functions.php
changeset 332 ec1c93c59c2c
parent 331 f0eee185880a
child 335 59fee40b4644
--- 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 '<br />';