Skip to content

Commit 2fc3a12

Browse files
Merge pull request #169 from royduin/patch-1
Fixed the CSS merging data uri bug
2 parents 34ab93c + 42e1d51 commit 2fc3a12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/core/Mage/Core/Model/Design/Package.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ public function beforeMergeCss($file, $contents)
781781
$cssImport = '/@import\\s+([\'"])(.*?)[\'"]/';
782782
$contents = preg_replace_callback($cssImport, array($this, '_cssMergerImportCallback'), $contents);
783783

784-
$cssUrl = '/url\\(\\s*(?!data:)([^\\)\\s]+)\\s*\\)?/';
784+
$cssUrl = '/url\\(\\s*(?![\\\'\\"]?data:)([^\\)\\s]+)\\s*\\)?/';
785785
$contents = preg_replace_callback($cssUrl, array($this, '_cssMergerUrlCallback'), $contents);
786786

787787
return $contents;

0 commit comments

Comments
 (0)