Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update library/Zend/Http/Header/SetCookie.php
Cookies were not handled correctly. If you had a cookie for .sub.domain.de from the last response and then fired a new request to www.sub.domain.de, the old cookie was not added to the request (because .sub.domain.de is a substring of www.sub.domain.de, it should be added, the method should return true which was not the case).
  • Loading branch information
PHPGangsta committed Sep 25, 2012
1 parent 2b55e08 commit 61d2d0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/Http/Header/SetCookie.php
Expand Up @@ -487,7 +487,7 @@ public function isSessionCookie()

public function isValidForRequest($requestDomain, $path, $isSecure = false)
{
if ($this->getDomain() && (strrpos($requestDomain, $this->getDomain()) !== false)) {
if ($this->getDomain() && (strrpos($requestDomain, $this->getDomain()) === false)) {
return false;
}

Expand Down

0 comments on commit 61d2d0c

Please sign in to comment.