Permalink
Browse files

fixed replacing URLs in CSS for something like data:image/png

  • Loading branch information...
xt99 committed Jul 22, 2013
1 parent 1ddac92 commit c0f2fe0aad7e2217ae082feb9d67b52b5d200600
Showing with 1 addition and 1 deletion.
  1. +1 −1 EClientScript.php
View
@@ -205,7 +205,7 @@ protected function combineCssFiles()
// re-generate the file
if (!$valid)
{
- $urlRegex = '#url\s*\(\s*([\'"])?(?!/|http://)([^\'"\s])#i';
+ $urlRegex = '#url\s*\(\s*([\'"])?(?!/|http://|data\:)([^\'"\s])#i';
$fileBuffer = '';
foreach ($files as $url => $file)
{

0 comments on commit c0f2fe0

Please sign in to comment.