summaryrefslogtreecommitdiffstats
path: root/Auth/Yadis/ParanoidHTTPFetcher.php
diff options
context:
space:
mode:
Diffstat (limited to 'Auth/Yadis/ParanoidHTTPFetcher.php')
-rw-r--r--Auth/Yadis/ParanoidHTTPFetcher.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/Auth/Yadis/ParanoidHTTPFetcher.php b/Auth/Yadis/ParanoidHTTPFetcher.php
index 5fa30ef..93a8a39 100644
--- a/Auth/Yadis/ParanoidHTTPFetcher.php
+++ b/Auth/Yadis/ParanoidHTTPFetcher.php
@@ -125,8 +125,12 @@ class Auth_Yadis_ParanoidHTTPFetcher extends Auth_Yadis_HTTPFetcher {
foreach ($headers as $header) {
if (preg_match("/:/", $header)) {
- list($name, $value) = explode(": ", $header, 2);
- $new_headers[$name] = $value;
+ $parts = explode(": ", $header, 2);
+
+ if (count($parts) == 2) {
+ list($name, $value) = $parts;
+ $new_headers[$name] = $value;
+ }
}
}