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 Oct 25, 2019
1 parent 5626472 commit 1c6e699
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 @@ -785,7 +785,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 1c6e699

Please sign in to comment.