Censorship.php
changeset 2 c8e6db42385f
parent 1 bfc5494ee70c
child 3 28a899aa460e
--- a/Censorship.php	Mon Dec 12 23:12:47 2011 -0500
+++ b/Censorship.php	Mon Dec 12 23:15:33 2011 -0500
@@ -23,6 +23,8 @@
 	$text = preg_split('/(<(?:[a-z\/].+?|!--.+?--)>|<script[^>]*>[\w\W]*?<\/script>)/', $text, NULL, PREG_SPLIT_DELIM_CAPTURE);
 	foreach ( $text as &$block )
 	{
+		if ( strlen($block) < 1 )
+			continue;
 		if ( $block{0} == '<' )
 			continue;