Rev3415, Fix FireFox wrapper_nonce url injection
This commit is contained in:
parent
fd842c43a6
commit
3beab611a3
2 changed files with 2 additions and 3 deletions
|
@ -10,7 +10,7 @@ class Config(object):
|
|||
|
||||
def __init__(self, argv):
|
||||
self.version = "0.6.2"
|
||||
self.rev = 3412
|
||||
self.rev = 3415
|
||||
self.argv = argv
|
||||
self.action = None
|
||||
self.config_file = "zeronet.conf"
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
<script>
|
||||
// If we are inside iframe escape from it
|
||||
if (window.self !== window.top) {
|
||||
window.open(window.location.toString(), "_top");
|
||||
window.open(window.location.toString().replace(/([&?])wrapper=False/, "$1").replace(/&$/, "").replace(/[&?]wrapper_nonce=[A-Za-z0-9]+/, ""), "_top");
|
||||
document.write("Escaping from iframe...");
|
||||
window.stop();
|
||||
document.execCommand("Stop", false);
|
||||
|
@ -64,7 +64,6 @@ else if (window.opener && window.opener.location.toString()) {
|
|||
|
||||
<!-- Site info -->
|
||||
<script id="script_init">
|
||||
document.getElementById("inner-iframe").src = "about:blank"
|
||||
document.getElementById("inner-iframe").src = "{file_url}{query_string}"
|
||||
address = "{address}"
|
||||
wrapper_nonce = "{wrapper_nonce}"
|
||||
|
|
Loading…
Reference in a new issue