1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-18 20:31:19 +02:00

Easier sending of default headers (customization)

This commit is contained in:
Jakub Vrana
2011-05-31 07:48:10 +02:00
parent 2b9bd6f05d
commit 0f00277b82
4 changed files with 8 additions and 6 deletions

View File

@@ -35,11 +35,10 @@ class Adminer {
}
/** Headers to send before HTML output
* @return null
* @return bool true to send security headers
*/
function headers() {
header("X-Frame-Options: deny"); // ClickJacking protection in IE8, Safari 4, Chrome 2, Firefox 3.6.9
header("X-XSS-Protection: 0"); // prevents introducing XSS in IE8 by removing safe parts of the page
return true;
}
/** Print HTML code inside <head>