Skip to content
Browse files

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...
1 parent 2b55e08 commit 61d2d0c9a284125a7186dee364d25d4404e678c4 @PHPGangsta committed Sep 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 library/Zend/Http/Header/SetCookie.php
View
2 library/Zend/Http/Header/SetCookie.php
@@ -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;
}

0 comments on commit 61d2d0c

Please sign in to comment.
Something went wrong with that request. Please try again.