diff options
author | David Rothstein <drothstein@gmail.com> | 2013-12-25 16:56:54 -0500 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2013-12-25 16:56:54 -0500 |
commit | 94a26aac1c7e280d4fa5953f6c0622b07bbff3bc (patch) | |
tree | 6707347159d68ba98a46155c3f3bd04b292bda34 /includes/common.inc | |
parent | 58081593e9d37eb17c687e6ab8a0eb3ec3d36d8a (diff) | |
download | brdo-94a26aac1c7e280d4fa5953f6c0622b07bbff3bc.tar.gz brdo-94a26aac1c7e280d4fa5953f6c0622b07bbff3bc.tar.bz2 |
Issue #2040209 by WebEvt: CSS is truncated when aggregation is turned on.
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 2 |
1 files changed, 1 insertions, 1 deletions
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. |