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):
|
def __init__(self, argv):
|
||||||
self.version = "0.6.2"
|
self.version = "0.6.2"
|
||||||
self.rev = 3412
|
self.rev = 3415
|
||||||
self.argv = argv
|
self.argv = argv
|
||||||
self.action = None
|
self.action = None
|
||||||
self.config_file = "zeronet.conf"
|
self.config_file = "zeronet.conf"
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<script>
|
<script>
|
||||||
// If we are inside iframe escape from it
|
// If we are inside iframe escape from it
|
||||||
if (window.self !== window.top) {
|
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...");
|
document.write("Escaping from iframe...");
|
||||||
window.stop();
|
window.stop();
|
||||||
document.execCommand("Stop", false);
|
document.execCommand("Stop", false);
|
||||||
|
@ -64,7 +64,6 @@ else if (window.opener && window.opener.location.toString()) {
|
||||||
|
|
||||||
<!-- Site info -->
|
<!-- Site info -->
|
||||||
<script id="script_init">
|
<script id="script_init">
|
||||||
document.getElementById("inner-iframe").src = "about:blank"
|
|
||||||
document.getElementById("inner-iframe").src = "{file_url}{query_string}"
|
document.getElementById("inner-iframe").src = "{file_url}{query_string}"
|
||||||
address = "{address}"
|
address = "{address}"
|
||||||
wrapper_nonce = "{wrapper_nonce}"
|
wrapper_nonce = "{wrapper_nonce}"
|
||||||
|
|
Loading…
Reference in a new issue