Skip to content

Commit 5c4ae7b

Browse files
committed
Update favicon.blade.php
1 parent d058eb4 commit 5c4ae7b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

resources/views/components/favicon.blade.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2421,6 +2421,9 @@ function get_headers($url,$format=0)
24212421
{
24222422
if (!empty($e->rel) && strtolower(trim($e->rel)) == 'shortcut icon') {
24232423
$favicon = $url.'/'.$e->href;
2424+
if (substr_count($favicon, 'https://') > 1 || substr_count($favicon, 'http://') > 1) {
2425+
$favicon = $e->href;
2426+
}
24242427
} else {
24252428
if (strtolower(trim($e->rel)) == 'icon') {
24262429
$favicon = $e->href;

0 commit comments

Comments
 (0)