mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +09:00
Restrict UA and lang_type cookies to RX_BASEURL
This commit is contained in:
parent
f7c67b54fd
commit
efc0d55f98
2 changed files with 2 additions and 2 deletions
|
|
@ -328,7 +328,7 @@ class Context
|
|||
$lang_type = preg_replace('/[^a-zA-Z0-9_-]/', '', $lang_type);
|
||||
if ($set_lang_cookie)
|
||||
{
|
||||
setcookie('lang_type', $lang_type, time() + 86400 * 365, '/', null, !!config('session.use_ssl_cookies'));
|
||||
setcookie('lang_type', $lang_type, time() + 86400 * 365, \RX_BASEURL, null, !!config('session.use_ssl_cookies'));
|
||||
}
|
||||
|
||||
if(!$lang_type || !isset($enabled_langs[$lang_type]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue