mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Remove unnecessary regex replacement
This commit is contained in:
parent
50410ec482
commit
51acad706e
1 changed files with 2 additions and 2 deletions
|
|
@ -1072,10 +1072,10 @@ class Session
|
|||
$_COOKIE['rx_sesskey2'] = $_SESSION['RHYMIX']['keys'][$domain]['key2'];
|
||||
}
|
||||
|
||||
// Delete conflicting wildcard keys.
|
||||
// Delete conflicting wildcard cookies.
|
||||
if (!strncmp($domain, 'www.', 4) && !Config::get('session.domain') && !ini_get('session.cookie_domain'))
|
||||
{
|
||||
$domain = preg_replace('/^www\./', '', $domain);
|
||||
$domain = substr($domain, 4);
|
||||
setcookie(session_name(), 'deleted', time() - 86400, $path, $domain);
|
||||
setcookie('rx_autologin', 'deleted', time() - 86400, $path, $domain);
|
||||
setcookie('rx_sesskey1', 'deleted', time() - 86400, $path, $domain);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue