summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2006-12-12 04:44:46 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2006-12-12 04:44:46 +0000
commitdd4b959ad23456b1861c411133888afa70aaad78 (patch)
tree47c973cbb5ea2acb2993477f60c9fa93f9a48b43
parent72d80d208fa8bd0c6c0f4688dcbdeb98b10e0d6f (diff)
downloadbrdo-dd4b959ad23456b1861c411133888afa70aaad78.tar.gz
brdo-dd4b959ad23456b1861c411133888afa70aaad78.tar.bz2
#102597: Fix overzealous CSS compressor.
-rw-r--r--includes/common.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 0d8d3b477..f1aabbda8 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -1503,9 +1503,9 @@ function drupal_build_css_cache($types, $filename) {
// Perform some safe CSS optimizations.
$data = preg_replace('<
- \s*([@{}:;\)])\s* | # Remove whitespace around separators.
- /\*([^*\\\\]|\*(?!/))+\*/ | # Remove comments that are not CSS hacks.
- [\n\r] # Remove line breaks.
+ \s*([@{}:;,]|\)\s|\s\()\s* | # Remove whitespace around separators, but keep space around parentheses.
+ /\*([^*\\\\]|\*(?!/))+\*/ | # Remove comments that are not CSS hacks.
+ [\n\r] # Remove line breaks.
>x', '\1', $data);
// Create the CSS file.