X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fparse_url.php;h=baf86775010a8360a7e09c451efc3f3ee3303905;hb=0c9cc29a51941eb572bf16fd5489d0947d47d033;hp=df5436b6261add605a703567f225906ea827a004;hpb=167a8998d628798699b91b321b23a45a0a1544c5;p=friendica.git diff --git a/mod/parse_url.php b/mod/parse_url.php index df5436b626..baf8677501 100644 --- a/mod/parse_url.php +++ b/mod/parse_url.php @@ -235,10 +235,9 @@ function parseurl_getsiteinfo($url, $no_guessing = false, $do_oembed = true, $co } } - //$list = $xpath->query("head/title"); $list = $xpath->query("//title"); - foreach ($list as $node) - $siteinfo["title"] = html_entity_decode($node->nodeValue, ENT_QUOTES, "UTF-8"); + if ($list->length > 0) + $siteinfo["title"] = $list->item(0)->nodeValue; //$list = $xpath->query("head/meta[@name]"); $list = $xpath->query("//meta[@name]");