aboutsummaryrefslogtreecommitdiffstats
path: root/include/oembed.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/oembed.php')
-rw-r--r--include/oembed.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/oembed.php b/include/oembed.php
index b325a766e..06f71a3b3 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);