diff options
author | Friendika <info@friendika.com> | 2011-10-20 16:48:07 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-10-20 16:48:07 -0700 |
commit | 01164c8c2f802f0b4c2f0f7c4a83ed826768ae1a (patch) | |
tree | 32b0ba9fc9c46057a44dfb97691fd548399c5520 /include/event.php | |
parent | bef7a5d66bf7ef26e0d4da1c6209f3e23b0ccffe (diff) | |
download | volse-hubzilla-01164c8c2f802f0b4c2f0f7c4a83ed826768ae1a.tar.gz volse-hubzilla-01164c8c2f802f0b4c2f0f7c4a83ed826768ae1a.tar.bz2 volse-hubzilla-01164c8c2f802f0b4c2f0f7c4a83ed826768ae1a.zip |
fix various html parse errors
Diffstat (limited to 'include/event.php')
-rw-r--r-- | include/event.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/event.php b/include/event.php index 746422a13..c7669b381 100644 --- a/include/event.php +++ b/include/event.php @@ -53,7 +53,12 @@ function parse_event($h) { $ret = array(); - $dom = HTML5_Parser::parse($h); + + try { + $dom = HTML5_Parser::parse($h); + } catch (DOMException $e) { + logger('parse_event: parse error: ' . $e); + } if(! $dom) return $ret; |