From: jakubvrana Date: Fri, 27 Jul 2007 11:02:05 +0000 (+0000) Subject: Unobtrusive cookies X-Git-Tag: v3.0.0~1236 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=a9b0320c38ef2cf597b82422ee367c99d38fc7e9;p=adminer.git Unobtrusive cookies git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@275 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- diff --git a/lang.inc.php b/lang.inc.php index 1c097368..cb6dcdeb 100644 --- a/lang.inc.php +++ b/lang.inc.php @@ -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"]; } diff --git a/sql.inc.php b/sql.inc.php index f82e7341..b6088ae4 100644 --- a/sql.inc.php +++ b/sql.inc.php @@ -1,6 +1,6 @@