Skip to content

Commit

Permalink
ignore data URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandresalome committed Sep 22, 2013
1 parent ff3080b commit 1dbb219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assetic/Filter/AssetDirectoryFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function filterDump(AssetInterface $asset)
$content = $this->filterReferences($asset->getContent(), function ($matches) use ($asset, $directory) {
$url = $matches['url'];

if (false !== strpos($url, '://')) {
if (false !== strpos($url, '://') || 0 === strpos($url, 'data:')) {
return $matches[0];
}

Expand Down

0 comments on commit 1dbb219

Please sign in to comment.