This commit is contained in:
Friendika
2011-08-16 20:05:02 -07:00
parent 98cdf5d315
commit b28b468b21
11 changed files with 38 additions and 23 deletions

View File

@@ -17,7 +17,8 @@ function oembed_fetch_url($embedurl){
$txt = "";
// try oembed autodiscovery
$html_text = fetch_url($embedurl);
$redirects = 0;
$html_text = fetch_url($embedurl, false, $redirects, 15);
if(! $html_text)
return;
$dom = @DOMDocument::loadHTML($html_text);