Commit fe22345a authored by Wandenberg's avatar Wandenberg

Fix #183 avoiding that the html tags inside the javascript being understood as...

Fix #183 avoiding that the html tags inside the javascript being understood as part of the html page
parent 1ad4b2a1
......@@ -683,7 +683,8 @@ Authors: Wandenberg Peixoto <wandenberg@gmail.com>, Rogério Carvalho Schneider
if ("ActiveXObject" in window) {
var transferDoc = new window.ActiveXObject("htmlfile");
transferDoc.open();
transferDoc.write("<html><script>document.domain='" + document.domain + "';</script><body><iframe id='" + this.iframeId + "' src='" + url + "'></iframe></body></html>");
transferDoc.write("\x3C" + "html" + "\x3E\x3C" + "script" + "\x3E" + "document.domain='" + document.domain + "';\x3C" + "/script" + "\x3E");
transferDoc.write("\x3C" + "body" + "\x3E\x3C" + "iframe id='" + this.iframeId + "' src='" + url + "'\x3E\x3C" + "/iframe" + "\x3E\x3C" + "/body" + "\x3E\x3C" + "/html" + "\x3E");
transferDoc.parentWindow.PushStream = PushStream;
transferDoc.close();
ifr = transferDoc.getElementById(this.iframeId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment