Skip to content

Commit

Permalink
[bug-OpenMage#169] Corrupted merged css file when using css data URIs
Browse files Browse the repository at this point in the history
  • Loading branch information
royduin authored and edannenberg committed Dec 6, 2017
1 parent bdba124 commit 7efec44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Core/Model/Design/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ public function beforeMergeCss($file, $contents)
$cssImport = '/@import\\s+([\'"])(.*?)[\'"]/';
$contents = preg_replace_callback($cssImport, array($this, '_cssMergerImportCallback'), $contents);

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

return $contents;
Expand Down

0 comments on commit 7efec44

Please sign in to comment.