We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 346340a commit be71531Copy full SHA for be71531
resources/views/components/favicon.blade.php
@@ -2361,7 +2361,11 @@ function getFavIcon($url) {
2361
$urlICO = str_replace("//favicon.ico","/favicon.ico",$urlICO);
2362
2363
$dom = new simple_html_dom();
2364
-$dom->load(file_get_contents($url));
+
2365
+$opts = array('http'=>array('header' => "User-Agent:Mozilla/4.0 (compatible; MSIE 6.0)"));
2366
+$context = stream_context_create($opts);
2367
2368
+$dom->load(file_get_contents($url,false,$context));
2369
$favicon = url('littlelink/icons/website.svg');
2370
2371
0 commit comments