mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Fix taint testing
This commit is contained in:
parent
410537456a
commit
8ddf10fc04
@ -55,7 +55,7 @@ _html2canvas.Renderer.Canvas = function(options) {
|
||||
createShape(ctx, item['arguments']);
|
||||
} else if (item.name === "drawImage") {
|
||||
if (item['arguments'][8] > 0 && item['arguments'][7] > 0) {
|
||||
if (options.taintTest || (options.taintTest && safeImage(item))) {
|
||||
if (!options.taintTest || (options.taintTest && safeImage(item))) {
|
||||
ctx.drawImage.apply( ctx, item['arguments'] );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user