diff --git a/js/cross_framing_protection.js b/js/cross_framing_protection.js
index 6fb780350f..1e1caf0fd4 100644
--- a/js/cross_framing_protection.js
+++ b/js/cross_framing_protection.js
@@ -1,14 +1,9 @@
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
- * Conditionally included if third-party framing is not allowed
- *
+ * Conditionally included if framing is not allowed
*/
-
-try {
- if (top != self) {
- top.location.href = self.location.href;
- }
-} catch(e) {
- alert("Redirecting... (error: " + e);
- top.location.href = self.location.href;
+if(self == top) {
+ document.documentElement.style.display = 'block' ;
+} else {
+ top.location = self.location ;
}
diff --git a/libraries/Header.class.php b/libraries/Header.class.php
index 810d556904..8e4ba3393d 100644
--- a/libraries/Header.class.php
+++ b/libraries/Header.class.php
@@ -531,6 +531,7 @@ class PMA_Header
$retval = '';
$retval .= '';
$retval .= '';
+ $retval .= '';
return $retval;
}