X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=include%2Foembed.php;h=06f71a3b32f75e1d0868bf54fa7ebf9526765f7d;hb=1248a561e13ebd0a612b7e6b0630c1aa89f0556e;hp=b325a766e3142cf32265b3e1b9949e94bb7efabc;hpb=3d45f9f133a7da9fec34d17c81f8c804c5a9deff;p=friendica.git diff --git a/include/oembed.php b/include/oembed.php index b325a766e3..06f71a3b32 100644 --- a/include/oembed.php +++ b/include/oembed.php @@ -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);