includes/functions.php
changeset 184 d74ff822acc9
parent 183 91127e62f38f
child 187 9dbbec5e6096
child 191 3dbe848431b0
--- a/includes/functions.php	Tue Oct 09 16:14:55 2007 -0400
+++ b/includes/functions.php	Fri Oct 12 14:41:51 2007 -0400
@@ -2804,7 +2804,7 @@
   }
   
   // Optimize (but don't obfuscate) Javascript
-  preg_match_all('/<script([ ]+.*?)?>(.*?)<\/script>/is', $html, $jscript);
+  preg_match_all('/<script([ ]+.*?)?>(.*?)(\]\]>)?<\/script>/is', $html, $jscript);
   
   // list of Javascript reserved words - from about.com
   $reserved_words = array('abstract', 'as', 'boolean', 'break', 'byte', 'case', 'catch', 'char', 'class', 'continue', 'const', 'debugger', 'default', 'delete', 'do',