That should have been multiline-safe
authorDan Fuhry <dan@enanocms.org>
Mon, 12 Dec 2011 23:33:12 -0500
changeset 4 4994af009663
parent 3 28a899aa460e
child 5 ce6af7a8f827
That should have been multiline-safe
Censorship.php
--- a/Censorship.php	Mon Dec 12 23:30:52 2011 -0500
+++ b/Censorship.php	Mon Dec 12 23:33:12 2011 -0500
@@ -20,7 +20,7 @@
 		return;
 	
 	// save HTML tags
-	$text = preg_split('/(<(?:[a-z\/].+?|!--.+?--)>|<script[^>]*>[\w\W]*?<\/script>|<a class="downloadbutton.*?<\/a>)/', $text, NULL, PREG_SPLIT_DELIM_CAPTURE);
+	$text = preg_split('/(<(?:[a-z\/].+?|!--.+?--)>|<script[^>]*>.*?<\/script>|<a class="downloadbutton.*?<\/a>)/m', $text, NULL, PREG_SPLIT_DELIM_CAPTURE);
 	foreach ( $text as &$block )
 	{
 		if ( strlen($block) < 1 )