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,7 +303,14 @@
$dom = $arr[1];
}
$parts = explode('.',$dom);
$this->dom = '.'.$parts[count($parts)-2].'.'.$parts[count($parts)-1];
if (count($parts) > 2)
{
$this->dom = '.'.$parts[count($parts)-2].'.'.$parts[count($parts)-1];
}
else
{
$this->dom = '';
}
}
function phpgw_setcookie($cookiename,$cookievalue='',$cookietime=0)

View File

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