mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-03-06 12:37:38 +01:00
Update favicon.blade.php
This commit is contained in:
parent
d058eb429e
commit
5c4ae7b2dc
@ -2421,6 +2421,9 @@ foreach($dom->find('link') as $e)
|
||||
{
|
||||
if (!empty($e->rel) && strtolower(trim($e->rel)) == 'shortcut icon') {
|
||||
$favicon = $url.'/'.$e->href;
|
||||
if (substr_count($favicon, 'https://') > 1 || substr_count($favicon, 'http://') > 1) {
|
||||
$favicon = $e->href;
|
||||
}
|
||||
} else {
|
||||
if (strtolower(trim($e->rel)) == 'icon') {
|
||||
$favicon = $e->href;
|
||||
|
Loading…
x
Reference in New Issue
Block a user