aboutsummaryrefslogtreecommitdiffstats
path: root/mod/parse_url.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-12-20 19:38:34 -0800
committerFriendika <info@friendika.com>2010-12-20 19:38:34 -0800
commitddec422de6707809aceb541e1191073b43aec18a (patch)
treeda79ea09482cf8984c7d9e02076dd2e4f0e8e65e /mod/parse_url.php
parent1a9f8eacc4bc2b7a67894018b63fc7b0864d760a (diff)
downloadvolse-hubzilla-ddec422de6707809aceb541e1191073b43aec18a.tar.gz
volse-hubzilla-ddec422de6707809aceb541e1191073b43aec18a.tar.bz2
volse-hubzilla-ddec422de6707809aceb541e1191073b43aec18a.zip
begin plugin api
Diffstat (limited to 'mod/parse_url.php')
-rw-r--r--mod/parse_url.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/parse_url.php b/mod/parse_url.php
index acfe624cb..1561eb8a3 100644
--- a/mod/parse_url.php
+++ b/mod/parse_url.php
@@ -2,6 +2,7 @@
require_once('library/HTML5/Parser.php');
+
function parse_url_content(&$a) {
$url = trim($_GET['url']);
@@ -16,13 +17,13 @@ function parse_url_content(&$a) {
echo '';
killme();
}
-
+
if(! $s) {
echo sprintf($template,$url,$url,'');
killme();
}
- $dom = HTML5_Parser::parse($s);
+ $dom = @HTML5_Parser::parse($s);
if(! $dom)
return $ret;