mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
Close #1777
Data-uri function used single quote ' around generated url, but did not encoded it in generated string. Switched it to " which is encoded.
This commit is contained in:
@@ -439,7 +439,7 @@ tree.functions = {
|
||||
buf = useBase64 ? buf.toString('base64')
|
||||
: encodeURIComponent(buf);
|
||||
|
||||
var uri = "'data:" + mimetype + ',' + buf + "'";
|
||||
var uri = "\"data:" + mimetype + ',' + buf + "\"";
|
||||
return new(tree.URL)(new(tree.Anonymous)(uri));
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user