Skip to content
Browse files

Update library/Zend/Http/Header/SetCookie.php

Cookies were not handled correctly. If you had a cookie for from the last response and then fired a new request to, the old cookie was not added to the request (because is a substring of, 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
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.