mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 06:55:56 +00:00
hide uninteresting errors in several DOMDocument->loadHTML() invocations
This commit is contained in:
@@ -1930,7 +1930,7 @@ class Feeds extends Handler_Protected {
|
||||
$feedUrls = [];
|
||||
|
||||
$doc = new DOMDocument();
|
||||
if ($doc->loadHTML($content)) {
|
||||
if (@$doc->loadHTML($content)) {
|
||||
$xpath = new DOMXPath($doc);
|
||||
$entries = $xpath->query('/html/head/link[@rel="alternate" and '.
|
||||
'(contains(@type,"rss") or contains(@type,"atom"))]|/html/head/link[@rel="feed"]');
|
||||
|
||||
Reference in New Issue
Block a user