Skip to content

Commit 3d2310f

Browse files
bugfix
1 parent df3a6e3 commit 3d2310f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

resources/views/components/favicon.blade.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,14 @@ function getFavIcon($id) {
2727
$html = @file_get_contents($url, false, $context);
2828
}
2929
30-
$dom = new DOMDocument();
31-
if ($html !== false) {
30+
31+
$dom = new DOMDocument();
32+
if ($html !== false) {
33+
try {
3234
@$dom->loadHTML($html);
33-
}
35+
} catch (Throwable $e) {}
36+
}
37+
3438
3539
$xpath = new DOMXPath($dom);
3640

0 commit comments

Comments
 (0)