X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FContent%2FOEmbed.php;h=170ee7ba265eb13a40d1e49d1f7cf22abb2c1ea0;hb=946fc82c77e16a980181ba5cc9df05ce06c98ae2;hp=1ddd3e65c621ed8d5f4924364ce2dabd2527c643;hpb=1eb7c19c1e2018e183baa503a873d3a538a31758;p=friendica.git diff --git a/src/Content/OEmbed.php b/src/Content/OEmbed.php index 1ddd3e65c6..170ee7ba26 100644 --- a/src/Content/OEmbed.php +++ b/src/Content/OEmbed.php @@ -78,7 +78,7 @@ class OEmbed if (!in_array($ext, $noexts)) { // try oembed autodiscovery $redirects = 0; - $html_text = Network::fetchURL($embedurl, false, $redirects, 15, "text/*"); + $html_text = Network::fetchUrl($embedurl, false, $redirects, 15, "text/*"); if ($html_text) { $dom = @DOMDocument::loadHTML($html_text); if ($dom) { @@ -86,13 +86,13 @@ class OEmbed $entries = $xpath->query("//link[@type='application/json+oembed']"); foreach ($entries as $e) { $href = $e->getAttributeNode("href")->nodeValue; - $txt = Network::fetchURL($href . '&maxwidth=' . $a->videowidth); + $txt = Network::fetchUrl($href . '&maxwidth=' . $a->videowidth); break; } $entries = $xpath->query("//link[@type='text/json+oembed']"); foreach ($entries as $e) { $href = $e->getAttributeNode("href")->nodeValue; - $txt = Network::fetchURL($href . '&maxwidth=' . $a->videowidth); + $txt = Network::fetchUrl($href . '&maxwidth=' . $a->videowidth); break; } } @@ -312,7 +312,7 @@ class OEmbed $allowed = explode(',', $str_allowed); - return Network::allowedDomain($domain, $allowed); + return Network::isDomainAllowed($domain, $allowed); } public static function getHTML($url, $title = null)