1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-09 16:17:48 +02:00

Keep form values after refresh in Firefox

This commit is contained in:
Jakub Vrana
2013-07-22 19:40:03 -07:00
parent 877f9cf360
commit e0ef072bd0
3 changed files with 3 additions and 1 deletions

View File

@@ -81,6 +81,7 @@ document.body.className = document.body.className.replace(/ nojs/, ' js');
function page_headers() {
global $adminer;
header("Content-Type: text/html; charset=utf-8");
header("Cache-Control: no-cache");
if ($adminer->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