1
0
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:
MoyuScript 2013-01-12 22:28:00 +02:00
parent 703e2a1889
commit e20728aaa9

@ -55,7 +55,7 @@ _html2canvas.Renderer.Canvas = function(options) {
createShape(ctx, item['arguments']); createShape(ctx, item['arguments']);
} else if (item.name === "drawImage") { } else if (item.name === "drawImage") {
if (item['arguments'][8] > 0 && item['arguments'][7] > 0) { 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'] ); ctx.drawImage.apply( ctx, item['arguments'] );
} }
} }