aboutsummaryrefslogtreecommitdiffstats
path: root/include/oembed.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-16 20:05:02 -0700
committerFriendika <info@friendika.com>2011-08-16 20:05:02 -0700
commitb28b468b2182493b958afecb388501fd66de230f (patch)
treece7adeebc826313e86b1b8ad281e2f4b8c9020a7 /include/oembed.php
parent98cdf5d3153ce3b4b7bc1bd505851f4ed5c73406 (diff)
downloadvolse-hubzilla-b28b468b2182493b958afecb388501fd66de230f.tar.gz
volse-hubzilla-b28b468b2182493b958afecb388501fd66de230f.tar.bz2
volse-hubzilla-b28b468b2182493b958afecb388501fd66de230f.zip
cleanup
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);