aboutsummaryrefslogtreecommitdiffstats
path: root/mod/parse_url.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/parse_url.php')
-rw-r--r--mod/parse_url.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/mod/parse_url.php b/mod/parse_url.php
index a238ecb2f..7a520ba92 100644
--- a/mod/parse_url.php
+++ b/mod/parse_url.php
@@ -88,9 +88,11 @@ function parse_url_content(&$a) {
$purifier = new HTMLPurifier($config);
$s = $purifier->purify($s);
-// logger('parse_url: purified: ' . $s, LOGGER_DATA);
-
- $dom = @HTML5_Parser::parse($s);
+ try {
+ $dom = HTML5_Parser::parse($s);
+ } catch (DOMException $e) {
+ logger('scrape_dfrn: parse error: ' . $e);
+ }
if(! $dom) {
echo sprintf($template,$url,$url,'') . $str_tags;