Skip to content

Commit ad373ed

Browse files
committed
Bugfix: Don't reload frameset on popups.
1 parent bcedd68 commit ad373ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/Misc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ function printHeader($title = '', $script = null, $frameset = false) {
548548
EOL;
549549
if (!$frameset) echo <<<EOL
550550
551-
if ("{$_SERVER['REQUEST_METHOD']}" === "GET" && (window.self === window.top)) {
551+
if ("{$_SERVER['REQUEST_METHOD']}" === "GET" && (window.self === window.top) && (!window.opener)) {
552552
$.post(new URL('./', location.href).href, { _originalPath: location.href }, function (data) {
553553
// GET request from outside frame. Reload encapsulated in our frameset.
554554
document.write(data);

0 commit comments

Comments
 (0)