patch from Matthew Galgoci to make cookies work also with domain names

with more then 2 parts(hostname.domainname.de)
This commit is contained in:
Lars Kneschke 2004-04-13 05:28:01 +00:00
parent 41f40155aa
commit 94a05b4690

View File

@ -440,7 +440,7 @@
{ {
if (!ereg('[0-9]+',$parts[1])) if (!ereg('[0-9]+',$parts[1]))
{ {
for($i=1;$i<count($parts);$i++) for($i=0;$i<count($parts);$i++)
{ {
$this->cookie_domain .= '.'.$parts[$i]; $this->cookie_domain .= '.'.$parts[$i];
} }