Fix taint testing

This commit is contained in:
Niklas von Hertzen 2013-01-12 22:28:00 +02:00
parent 410537456a
commit 8ddf10fc04

View File

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