Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
f8952b67
Commit
f8952b67
authored
Aug 20, 2010
by
Dries
Browse files
- Patch
#881132
by Garrett Albright: CSS Optimization breaks with non-
UTF-8
.css files.
parent
2cfca913
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/common.inc
View file @
f8952b67
...
...
@@ -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
>S
u
s"
,
// 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
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment