Module: website Branch: master Commit: a6cc111129a8dd7123bd0bbebc06fdb0aecd0caf URL: http://source.winehq.org/git/website.git/?a=commit;h=a6cc111129a8dd7123bd0bb...
Author: Jeremy Newman jnewman@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(); }