From f8952b675c8df8610e43f440bbfe48bd24dcc3cb Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 20 Aug 2010 01:17:51 +0000 Subject: - Patch #881132 by Garrett Albright: CSS Optimization breaks with non-UTF-8 .css files. --- includes/common.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/common.inc') diff --git a/includes/common.inc b/includes/common.inc index fc5971dc0..959675f8b 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -3340,7 +3340,7 @@ function drupal_load_stylesheet_content($contents, $optimize = FALSE) { // Regexp to match single quoted strings. $single_quot = "'[^'\\\\]*(?:\\\\.[^'\\\\]*)*'"; $contents = preg_replace( - "<($double_quot|$single_quot)|$comment>Sus", // Strip all comment blocks + "<($double_quot|$single_quot)|$comment>Ss", // Strip all comment blocks "$1", // but keep double/single $contents); // quoted strings. $contents = preg_replace( -- cgit v1.2.3