Don't censor the front page download button
authorDan Fuhry <dan@enanocms.org>
Mon, 12 Dec 2011 23:30:52 -0500
changeset 3 28a899aa460e
parent 2 c8e6db42385f
child 4 4994af009663
Don't censor the front page download button
Censorship.php
--- a/Censorship.php	Mon Dec 12 23:15:33 2011 -0500
+++ b/Censorship.php	Mon Dec 12 23:30:52 2011 -0500
@@ -20,7 +20,7 @@
 		return;
 	
 	// save HTML tags
-	$text = preg_split('/(<(?:[a-z\/].+?|!--.+?--)>|<script[^>]*>[\w\W]*?<\/script>)/', $text, NULL, PREG_SPLIT_DELIM_CAPTURE);
+	$text = preg_split('/(<(?:[a-z\/].+?|!--.+?--)>|<script[^>]*>[\w\W]*?<\/script>|<a class="downloadbutton.*?<\/a>)/', $text, NULL, PREG_SPLIT_DELIM_CAPTURE);
 	foreach ( $text as &$block )
 	{
 		if ( strlen($block) < 1 )