From ae8c2d9d2644727bb347495a917bf437798596b4 Mon Sep 17 00:00:00 2001 From: Andrew Podner Date: Wed, 26 Dec 2012 08:05:44 -0500 Subject: issue #2092 : Improve/Revise JS and CSS minify method (code refinements) --- system/core/Output.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/core/Output.php b/system/core/Output.php index 4d89975a7..769ec1915 100644 --- a/system/core/Output.php +++ b/system/core/Output.php @@ -861,8 +861,8 @@ class CI_Output { // Strip spaces preceded/followed by a non-ASCII character // or not preceded/followed by an alphanumeric // or not preceded/followed \ $ and _ - if ((preg_match('/^[\x20-\x7f]*$/D', $next) or preg_match('/^[\x20-\x7f]*$/D', $prev)) - && ( ! ctype_alnum($next) or ! ctype_alnum($prev)) + if ((preg_match('/^[\x20-\x7f]*$/D', $next) OR preg_match('/^[\x20-\x7f]*$/D', $prev)) + && ( ! ctype_alnum($next) OR ! ctype_alnum($prev)) && ( ! in_array($next, array('\\', '_', '$')) && ! in_array($prev, array('\\', '_', '$')))) { unset($array_output[$key]); -- cgit v1.2.3-24-g4f1b