diff options
-rw-r--r-- | includes/common.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/common.inc b/includes/common.inc index 9c233c2d5..299924c93 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -1633,6 +1633,8 @@ function drupal_build_css_cache($types, $filename) { foreach ($type as $file => $cache) { if ($cache) { $contents = file_get_contents($file); + // Remove multiple charset declarations for standards compliance (and fixing Safari problems) + $contents = preg_replace('/^@charset\s+[\'"](\S*)\b[\'"];/i', '', $contents); // Return the path to where this CSS file originated from, stripping // off the name of the file at the end of the path. $path = base_path() . substr($file, 0, strrpos($file, '/')) .'/'; |