support reverse magic-auth in oembed requests.
This commit is contained in:
parent
7667c630a4
commit
4ca24f114b
@ -149,7 +149,14 @@ function oembed_fetch_url($embedurl){
|
|||||||
if ($action !== 'block') {
|
if ($action !== 'block') {
|
||||||
// try oembed autodiscovery
|
// try oembed autodiscovery
|
||||||
$redirects = 0;
|
$redirects = 0;
|
||||||
$result = z_fetch_url($furl, false, $redirects, array('timeout' => 30, 'accept_content' => "text/*", 'novalidate' => true ));
|
$result = z_fetch_url($furl, false, $redirects,
|
||||||
|
[
|
||||||
|
'timeout' => 30,
|
||||||
|
'accept_content' => "text/*",
|
||||||
|
'novalidate' => true,
|
||||||
|
'session' => ((local_channel() && $zrl) ? true : false)
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
if($result['success'])
|
if($result['success'])
|
||||||
$html_text = $result['body'];
|
$html_text = $result['body'];
|
||||||
|
Reference in New Issue
Block a user