| @@ 3488-3494 (lines=7) @@ | ||
| 3485 | continue; |
|
| 3486 | } |
|
| 3487 | } |
|
| 3488 | if ((isset($cookie['domain'])) && (! empty($cookie['domain']))) { |
|
| 3489 | $domain = preg_quote($cookie['domain']); |
|
| 3490 | if (! preg_match("'.*$domain$'i", $this->host)) { |
|
| 3491 | $this->debug('cookie has different domain'); |
|
| 3492 | continue; |
|
| 3493 | } |
|
| 3494 | } |
|
| 3495 | if ((isset($cookie['path'])) && (! empty($cookie['path']))) { |
|
| 3496 | $path = preg_quote($cookie['path']); |
|
| 3497 | if (! preg_match("'^$path.*'i", $this->path)) { |
|
| @@ 3495-3501 (lines=7) @@ | ||
| 3492 | continue; |
|
| 3493 | } |
|
| 3494 | } |
|
| 3495 | if ((isset($cookie['path'])) && (! empty($cookie['path']))) { |
|
| 3496 | $path = preg_quote($cookie['path']); |
|
| 3497 | if (! preg_match("'^$path.*'i", $this->path)) { |
|
| 3498 | $this->debug('cookie is for a different path'); |
|
| 3499 | continue; |
|
| 3500 | } |
|
| 3501 | } |
|
| 3502 | if ((! $secure) && (isset($cookie['secure'])) && ($cookie['secure'])) { |
|
| 3503 | $this->debug('cookie is secure, transport is not'); |
|
| 3504 | continue; |
|