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 df3a6e3 commit 3d2310fCopy full SHA for 3d2310f
1 file changed
resources/views/components/favicon.blade.php
@@ -27,10 +27,14 @@ function getFavIcon($id) {
27
$html = @file_get_contents($url, false, $context);
28
}
29
30
- $dom = new DOMDocument();
31
- if ($html !== false) {
+
+$dom = new DOMDocument();
32
+if ($html !== false) {
33
+ try {
34
@$dom->loadHTML($html);
- }
35
+ } catch (Throwable $e) {}
36
+}
37
38
39
$xpath = new DOMXPath($dom);
40
0 commit comments