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:
meri
2014-01-05 12:27:05 +01:00
parent 626b004263
commit d438b9c52d
2 changed files with 5 additions and 5 deletions

View File

@@ -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));
},