From 94a26aac1c7e280d4fa5953f6c0622b07bbff3bc Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Wed, 25 Dec 2013 16:56:54 -0500 Subject: Issue #2040209 by WebEvt: CSS is truncated when aggregation is turned on. --- includes/common.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index a64f0c555..9ad68eabd 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -3700,7 +3700,7 @@ function drupal_load_stylesheet($file, $optimize = NULL, $reset_basepath = TRUE) */ function drupal_load_stylesheet_content($contents, $optimize = FALSE) { // Remove multiple charset declarations for standards compliance (and fixing Safari problems). - $contents = preg_replace('/^@charset\s+[\'"](\S*)\b[\'"];/i', '', $contents); + $contents = preg_replace('/^@charset\s+[\'"](\S*?)\b[\'"];/i', '', $contents); if ($optimize) { // Perform some safe CSS optimizations. -- cgit v1.2.3