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
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'] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user