diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-11-01 17:15:58 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-11-01 17:15:58 +0100 |
commit | 92fa0daed34116e514ddc12495bdbd173342450c (patch) | |
tree | 3ca499e2e752266ac9dd8f31ebe1514ec0805ec4 | |
parent | 886f80e7a9d4651ee3524837f0f5e430687ba6a5 (diff) | |
download | rpg-92fa0daed34116e514ddc12495bdbd173342450c.tar.gz rpg-92fa0daed34116e514ddc12495bdbd173342450c.tar.bz2 |
fix for cookie handling problem in HTTPClient and PHP5
darcs-hash:20061101161558-7ad00-2a9b093dffc1955f8a8a0a2e17ca6b177182e399.gz
-rw-r--r-- | inc/HTTPClient.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |