diff --git a/src/Favicon/Favicon.php b/src/Favicon/Favicon.php index d2f4d94..71f76c4 100644 --- a/src/Favicon/Favicon.php +++ b/src/Favicon/Favicon.php @@ -204,7 +204,7 @@ private function getFavicon($url, $checkDefault = true) { // Make sure the favicon is an absolute URL. if( $favicon && filter_var($favicon, FILTER_VALIDATE_URL) === false ) { - $favicon = $url . '/' . $favicon; + $favicon = rtrim($url, '/') . '/' . ltrim($favicon, '/'); } // Sometimes people lie, so check the status.