Unobtrusive cookies

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@275 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana 2007-07-27 11:02:05 +00:00
parent 4c1bf36e0b
commit a9b0320c38
2 changed files with 2 additions and 2 deletions

View file

@ -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"];
}

View file

@ -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"];
}