Skip to content

Commit be71531

Browse files
committed
Update favicon.blade.php
1 parent 346340a commit be71531

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

resources/views/components/favicon.blade.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2361,7 +2361,11 @@ function getFavIcon($url) {
23612361
$urlICO = str_replace("//favicon.ico","/favicon.ico",$urlICO);
23622362
23632363
$dom = new simple_html_dom();
2364-
$dom->load(file_get_contents($url));
2364+
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));
23652369
$favicon = url('littlelink/icons/website.svg');
23662370
23672371

0 commit comments

Comments
 (0)