summaryrefslogtreecommitdiffstats
path: root/system/core/Output.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2013-10-22 14:00:11 +0200
committerAndrey Andreev <narf@devilix.net>2013-10-22 14:00:11 +0200
commit6614367f62d2cbd9e8f979c9349cd5474b035866 (patch)
tree5cd7998ca151a6afc9edf6bc0a536cd0ad0289ea /system/core/Output.php
parent32c7212edb0488524a0eece98cb1e2321ee90c29 (diff)
Fix CSS minifier
Diffstat (limited to 'system/core/Output.php')
-rw-r--r--system/core/Output.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/system/core/Output.php b/system/core/Output.php
index 04209d920..719c43256 100644
--- a/system/core/Output.php
+++ b/system/core/Output.php
@@ -909,12 +909,12 @@ class CI_Output {
$next = $array_output[$key + 1];
// Strip spaces preceded/followed by a non-ASCII character
- // or not preceded/followed by an alphanumeric
- // or not preceded/followed \ $ and _
+ // that are not preceded/followed by an alphanumeric character,
+ // '\', '$', '_', '.' and '#'
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('\\', '_', '$'), TRUE)
- && ! in_array($prev, array('\\', '_', '$'), TRUE)
+ && ! in_array($next, array('\\', '_', '$', '.', '#'), TRUE)
+ && ! in_array($prev, array('\\', '_', '$', '.', '#'), TRUE)
)
{
unset($array_output[$key]);