mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
Last fix for the domain cookie.
This commit is contained in:
parent
4191f270f7
commit
084bf0c8b4
@ -311,12 +311,23 @@
|
||||
$parts = explode('.',$dom);
|
||||
if (count($parts) > 2)
|
||||
{
|
||||
$this->cookie_domain = '.'.$parts[count($parts)-2].'.'.$parts[count($parts)-1];
|
||||
if (!ereg('[0-9]+',$parts[1]))
|
||||
{
|
||||
for($i=1;$i<count($parts);$i++)
|
||||
{
|
||||
$this->cookie_domain .= '.'.$parts[$i];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->cookie_domain = '';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->cookie_domain = '';
|
||||
}
|
||||
print_debug('COOKIE_DOMAIN',$this->cookie_domain,'api');
|
||||
}
|
||||
|
||||
function phpgw_setcookie($cookiename,$cookievalue='',$cookietime=0)
|
||||
|
@ -291,12 +291,24 @@
|
||||
$parts = explode('.',$dom);
|
||||
if (count($parts) > 2)
|
||||
{
|
||||
$this->cookie_domain = '.'.$parts[count($parts)-2].'.'.$parts[count($parts)-1];
|
||||
if (!ereg('[0-9]+',$parts[1]))
|
||||
{
|
||||
for($i=1;$i<count($parts);$i++)
|
||||
{
|
||||
$this->cookie_domain .= '.'.$parts[$i];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->cookie_domain = '';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->cookie_domain = '';
|
||||
}
|
||||
print_debug('COOKIE_DOMAIN',$this->cookie_domain,'api');
|
||||
session_set_cookie_params(0,'/',$this->cookie_domain);
|
||||
}
|
||||
|
||||
function phpgw_setcookie($cookiename,$cookievalue='',$cookietime=0)
|
||||
|
Loading…
Reference in New Issue
Block a user