Yup, my PCRE flags are just rusty. default tip
authorDan Fuhry <dan@enanocms.org>
Mon, 12 Dec 2011 23:44:02 -0500
changeset 6 3109ceb0b167
parent 5 ce6af7a8f827
Yup, my PCRE flags are just rusty.
Censorship.php
--- a/Censorship.php	Mon Dec 12 23:34:49 2011 -0500
+++ b/Censorship.php	Mon Dec 12 23:44:02 2011 -0500
@@ -20,7 +20,7 @@
 		return;
 	
 	// save HTML tags
-	$text = preg_split('/(<a class="downloadbutton.*?<\/a>|<script[^>]*>.*?<\/script>|<(?:[a-z\/].+?|!--.+?--)>)/m', $text, NULL, PREG_SPLIT_DELIM_CAPTURE);
+	$text = preg_split('/(<a .*?<\/a>|<script[^>]*>.*?<\/script>|<(?:[a-z\/].+?|!--.+?--)>)/s', $text, NULL, PREG_SPLIT_DELIM_CAPTURE);
 	foreach ( $text as &$block )
 	{
 		if ( strlen($block) < 1 )