diff options
| author | 2017-04-23 01:59:09 +0200 | |
|---|---|---|
| committer | 2017-04-23 01:59:09 +0200 | |
| commit | f483a5e95bc78cfb42e6fd90436c9f1c60e0242b (patch) | |
| tree | cba2dcd76138fa40d7a69803ddbccb3887b5111f /lib/Favicon/Favicon.php | |
| parent | 57f1e9d6570e86f1bc679ed4897437ae4b14a2b5 (diff) | |
Favicon fix redirects
https://github.com/ArthurHoaro/favicon/pull/5/commits/92b42591591b4282261f21ed5ffa553f5e987a9d
Diffstat (limited to 'lib/Favicon/Favicon.php')
| -rw-r--r-- | lib/Favicon/Favicon.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Favicon/Favicon.php b/lib/Favicon/Favicon.php index 39f45f139..c026d8a95 100644 --- a/lib/Favicon/Favicon.php +++ b/lib/Favicon/Favicon.php @@ -111,6 +111,9 @@ class Favicon case '301': case '302': $url = isset($headers['location']) ? $headers['location'] : ''; + if (is_array($url)) { + $url = end($url); + } break; default: $loop = FALSE; |
