Added mr_e's patch.

This commit is contained in:
skeeter 2002-09-14 21:58:39 +00:00
parent bf218b85ed
commit 94eb165d39
2 changed files with 16 additions and 2 deletions

View File

@ -303,8 +303,15 @@
$dom = $arr[1]; $dom = $arr[1];
} }
$parts = explode('.',$dom); $parts = explode('.',$dom);
if (count($parts) > 2)
{
$this->dom = '.'.$parts[count($parts)-2].'.'.$parts[count($parts)-1]; $this->dom = '.'.$parts[count($parts)-2].'.'.$parts[count($parts)-1];
} }
else
{
$this->dom = '';
}
}
function phpgw_setcookie($cookiename,$cookievalue='',$cookietime=0) function phpgw_setcookie($cookiename,$cookievalue='',$cookietime=0)
{ {

View File

@ -288,8 +288,15 @@
$dom = $arr[1]; $dom = $arr[1];
} }
$parts = explode('.',$dom); $parts = explode('.',$dom);
if (count($parts) > 2)
{
$this->dom = '.'.$parts[count($parts)-2].'.'.$parts[count($parts)-1]; $this->dom = '.'.$parts[count($parts)-2].'.'.$parts[count($parts)-1];
} }
else
{
$this->dom = '';
}
}
function phpgw_setcookie($cookiename,$cookievalue='',$cookietime=0) function phpgw_setcookie($cookiename,$cookievalue='',$cookietime=0)
{ {