A free, self-hostable news aggregator…
Favicon array bug
Alexandre Alapetitef3696784ea0a
diff --git a/lib/Favicon/DataAccess.php b/lib/Favicon/DataAccess.phpindex 2bfdf640e..17f26b333 100644--- a/lib/Favicon/DataAccess.php+++ b/lib/Favicon/DataAccess.php@@ -15,7 +15,8 @@ class DataAccess {public function retrieveHeader($url) {$this->set_context();- return @get_headers($url, TRUE);+ $headers = @get_headers($url, 1);+ return array_change_key_case($headers);}public function saveCache($file, $data) {diff --git a/lib/Favicon/Favicon.php b/lib/Favicon/Favicon.phpindex 7ea6ccf16..1912050d6 100644--- a/lib/Favicon/Favicon.php+++ b/lib/Favicon/Favicon.php@@ -99,7 +99,7 @@ class Faviconswitch ($status) {case '301':case '302':- $url = $headers['Location'];+ $url = isset($headers['location']) ? $headers['location'] : '';break;default:$loop = FALSE;