mirror of
https://github.com/vrana/adminer.git
synced 2025-08-13 01:54:00 +02:00
Unobtrusive cookies
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@275 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -32,7 +32,7 @@ function switch_lang() {
|
||||
}
|
||||
|
||||
if (isset($_GET["lang"])) {
|
||||
setcookie("lang", $_GET["lang"], strtotime("+1 month"));
|
||||
setcookie("lang", $_GET["lang"], strtotime("+1 month"), preg_replace('~\\?.*~', '', $_SERVER["REQUEST_URI"]));
|
||||
$_COOKIE["lang"] = $_GET["lang"];
|
||||
}
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
if (isset($_POST["query"])) {
|
||||
setcookie("highlight", $_POST["highlight"], strtotime("+1 month"));
|
||||
setcookie("highlight", $_POST["highlight"], strtotime("+1 month"), preg_replace('~\\?.*~', '', $_SERVER["REQUEST_URI"]));
|
||||
$_COOKIE["highlight"] = $_POST["highlight"];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user