From 58594ed44dfa39a4a1309b220a5420094dec23f7 Mon Sep 17 00:00:00 2001 From: Andrew Podner Date: Tue, 25 Dec 2012 21:46:05 -0500 Subject: issue #2092 : Improve/Revise JS and CSS minify method --- system/core/Output.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system') diff --git a/system/core/Output.php b/system/core/Output.php index f62885a72..4d89975a7 100644 --- a/system/core/Output.php +++ b/system/core/Output.php @@ -862,7 +862,7 @@ class CI_Output { // 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) || ! ctype_alnum($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