From a9b0320c38ef2cf597b82422ee367c99d38fc7e9 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Fri, 27 Jul 2007 11:02:05 +0000 Subject: [PATCH] Unobtrusive cookies git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@275 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- lang.inc.php | 2 +- sql.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 @@