aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-10-20 16:48:07 -0700
committerFriendika <info@friendika.com>2011-10-20 16:48:07 -0700
commit01164c8c2f802f0b4c2f0f7c4a83ed826768ae1a (patch)
tree32b0ba9fc9c46057a44dfb97691fd548399c5520 /include/network.php
parentbef7a5d66bf7ef26e0d4da1c6209f3e23b0ccffe (diff)
downloadvolse-hubzilla-01164c8c2f802f0b4c2f0f7c4a83ed826768ae1a.tar.gz
volse-hubzilla-01164c8c2f802f0b4c2f0f7c4a83ed826768ae1a.tar.bz2
volse-hubzilla-01164c8c2f802f0b4c2f0f7c4a83ed826768ae1a.zip
fix various html parse errors
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/network.php b/include/network.php
index ec99d1e0d..c6f5fd909 100644
--- a/include/network.php
+++ b/include/network.php
@@ -429,7 +429,12 @@ function lrdd($uri) {
// don't try and parse raw xml as html
if(! strstr($html,'<?xml')) {
require_once('library/HTML5/Parser.php');
- $dom = @HTML5_Parser::parse($html);
+
+ try {
+ $dom = HTML5_Parser::parse($html);
+ } catch (DOMException $e) {
+ logger('lrdd: parse error: ' . $e);
+ }
if($dom) {
$items = $dom->getElementsByTagName('link');