functions: HTML compressor: fixed handling of <script> blocks which consist only of whitespace
authorDan Fuhry <dan@enanocms.org>
Thu, 10 Feb 2011 01:34:55 -0500
changeset 1339 03c5b9e8e02a
parent 1338 4147bda0e93f
child 1340 d1d64b373878
functions: HTML compressor: fixed handling of <script> blocks which consist only of whitespace
includes/functions.php
--- a/includes/functions.php	Sat Jan 29 15:31:25 2011 -0500
+++ b/includes/functions.php	Thu Feb 10 01:34:55 2011 -0500
@@ -3373,7 +3373,7 @@
 	for ( $i = 0; $i < count($jscript[0]); $i++ )
 	{
 		$js =& $jscript[2][$i];
-		if ( empty($js) )
+		if ( trim($js) == '' )
 			continue;
 		
 		$js = $jsc->getClean($js);