| @@ 3711-3717 (lines=7) @@ | ||
| 3708 | continue; |
|
| 3709 | } |
|
| 3710 | } |
|
| 3711 | if (isset($cookie['domain']) && (!empty($cookie['domain']))) { |
|
| 3712 | $domain = preg_quote($cookie['domain']); |
|
| 3713 | if (!preg_match("'.*$domain$'i", $this->host)) { |
|
| 3714 | $this->debug('cookie has different domain'); |
|
| 3715 | continue; |
|
| 3716 | } |
|
| 3717 | } |
|
| 3718 | if (isset($cookie['path']) && (!empty($cookie['path']))) { |
|
| 3719 | $path = preg_quote($cookie['path']); |
|
| 3720 | if (!preg_match("'^$path.*'i", $this->path)) { |
|
| @@ 3718-3724 (lines=7) @@ | ||
| 3715 | continue; |
|
| 3716 | } |
|
| 3717 | } |
|
| 3718 | if (isset($cookie['path']) && (!empty($cookie['path']))) { |
|
| 3719 | $path = preg_quote($cookie['path']); |
|
| 3720 | if (!preg_match("'^$path.*'i", $this->path)) { |
|
| 3721 | $this->debug('cookie is for a different path'); |
|
| 3722 | continue; |
|
| 3723 | } |
|
| 3724 | } |
|
| 3725 | if ((!$secure) && isset($cookie['secure']) && $cookie['secure']) { |
|
| 3726 | $this->debug('cookie is secure, transport is not'); |
|
| 3727 | continue; |
|