Jeremy Newman : limit cookie to the base_root of the site

Jeremy Newman jnewman at winehq.org
Thu Dec 11 10:25:24 CST 2008


Module: website
Branch: master
Commit: a6cc111129a8dd7123bd0bbebc06fdb0aecd0caf
URL:    http://source.winehq.org/git/website.git/?a=commit;h=a6cc111129a8dd7123bd0bbebc06fdb0aecd0caf

Author: Jeremy Newman <jnewman at codeweavers.com>
Date:   Thu Dec 11 10:22:47 2008 -0600

limit cookie to the base_root of the site

---

 include/plugins/language.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/plugins/language.php b/include/plugins/language.php
index 0291f8b..a785430 100644
--- a/include/plugins/language.php
+++ b/include/plugins/language.php
@@ -11,7 +11,7 @@ global $html, $config;
 // if specified, switch to lang
 if (defined('PAGE_PARAMS') and in_array(PAGE_PARAMS, $config->languages))
 {
-    setcookie("lang", PAGE_PARAMS, time()+60*60*24*365, '/');
+    setcookie("lang", PAGE_PARAMS, time()+60*60*24*365, "{$config->base_root}/");
     $html->redirect($config->base_url);
     exit();
 }




More information about the wine-cvs mailing list