Update favicon.blade.php

This commit is contained in:
Julian Prieber 2022-11-24 20:10:39 +01:00
parent 346340a548
commit be7153121e
1 changed files with 5 additions and 1 deletions

View File

@ -2361,7 +2361,11 @@ $urlICO = $url . "/favicon.ico";
$urlICO = str_replace("//favicon.ico","/favicon.ico",$urlICO);
$dom = new simple_html_dom();
$dom->load(file_get_contents($url));
$opts = array('http'=>array('header' => "User-Agent:Mozilla/4.0 (compatible; MSIE 6.0)"));
$context = stream_context_create($opts);
$dom->load(file_get_contents($url,false,$context));
$favicon = url('littlelink/icons/website.svg');