Skip to content
Snippets Groups Projects
Commit 5dba76ff authored by Christopher Smith's avatar Christopher Smith
Browse files

Merge pull request #232 from flammy/patch-1

Fixes validation problems with base64 encoded images in CSS.
parents c425285c 88833bac
No related branches found
No related tags found
No related merge requests found
...@@ -314,7 +314,7 @@ function css_datauri($match){ ...@@ -314,7 +314,7 @@ function css_datauri($match){
$data = base64_encode(file_get_contents($local)); $data = base64_encode(file_get_contents($local));
} }
if($data){ if($data){
$url = 'data:image/'.$ext.';base64,'.$data; $url = '\'data:image/'.$ext.';base64,'.$data.'\'';
}else{ }else{
$url = $base.$url; $url = $base.$url;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment