From 92fa0daed34116e514ddc12495bdbd173342450c Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Wed, 1 Nov 2006 17:15:58 +0100 Subject: fix for cookie handling problem in HTTPClient and PHP5 darcs-hash:20061101161558-7ad00-2a9b093dffc1955f8a8a0a2e17ca6b177182e399.gz --- inc/HTTPClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/HTTPClient.php') diff --git a/inc/HTTPClient.php b/inc/HTTPClient.php index aaded04ae..6c8de7328 100644 --- a/inc/HTTPClient.php +++ b/inc/HTTPClient.php @@ -249,7 +249,7 @@ class HTTPClient { // handle headers and cookies $this->resp_headers = $this->_parseHeaders($r_headers); if(isset($this->resp_headers['set-cookie'])){ - foreach ($this->resp_headers['set-cookie'] as $c){ + foreach ((array) $this->resp_headers['set-cookie'] as $c){ list($key, $value, $foo) = split('=', $cookie); $this->cookies[$key] = $value; } -- cgit v1.2.3