Rev3415, Fix FireFox wrapper_nonce url injection

This commit is contained in:
shortcutme 2018-04-18 21:40:29 +02:00
parent fd842c43a6
commit 3beab611a3
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 2 additions and 3 deletions

View file

@ -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}"