git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@275
7c3ca157-0c34-0410-bff1-
cbf682f78f5c
}
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"];
}
<?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"];
}