]> git.joonet.de Git - adminer.git/commitdiff
Keep form values after refresh in Firefox
authorJakub Vrana <jakub@vrana.cz>
Tue, 23 Jul 2013 02:40:03 +0000 (19:40 -0700)
committerJakub Vrana <jakub@vrana.cz>
Tue, 23 Jul 2013 02:40:03 +0000 (19:40 -0700)
adminer/include/bootstrap.inc.php
adminer/include/design.inc.php
changes.txt

index 085fda7d995df1d0c83d402593dba4e52ff7db72..b1a27ae64a885e4040164a05bd518328e30a8d84 100644 (file)
@@ -36,6 +36,7 @@ if (!strpos($_SERVER["REQUEST_URI"], '?') && $_SERVER["QUERY_STRING"] != "") { /
 $HTTPS = $_SERVER["HTTPS"] && strcasecmp($_SERVER["HTTPS"], "off");
 
 @ini_set("session.use_trans_sid", false); // protect links in export, @ - may be disabled
+session_cache_limiter(""); // to allow restarting session and to not send Cache-Control: no-store
 if (!defined("SID")) {
        session_name("adminer_sid"); // use specific session name to get own namespace
        $params = array(0, preg_replace('~\\?.*~', '', $_SERVER["REQUEST_URI"]), "", $HTTPS);
@@ -83,7 +84,6 @@ include "../adminer/include/xxtea.inc.php";
 include "../adminer/include/auth.inc.php";
 
 if (!ini_bool("session.use_cookies") || @ini_set("session.use_cookies", false) !== false) { // @ - may be disabled
-       session_cache_limiter(""); // to allow restarting session
        session_write_close(); // improves concurrency if a user opens several pages at once, may be restarted later
 }
 
index e82be4e29832de3521612ba2685941462cf54c42..7cfa02029c13430e171a52d72d8e5c0fc76d5b90 100644 (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
index 456426db538f405e067e834287155e4ed058918e..1c80a911674463790656457f3dbfd611a94b9947 100644 (file)
@@ -9,6 +9,7 @@ Display number of selected rows
 Add links to documentation
 Disable underlining links
 Improve speed of CSV import
+Keep form values after refresh in Firefox
 Don't append newlines to uploaded files, bug since Adminer 3.7.0
 PostgreSQL: Fix handling of nextval() default values