mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
Merge branch 'dev' into 'dev'
Do not overwrite HTTP schema for Youtube on embedding See merge request hubzilla/core!1917
This commit is contained in:
@@ -193,9 +193,9 @@ function oembed_fetch_url($embedurl){
|
||||
|
||||
// Youtube will happily hand us an http oembed URL even if we specify an https link; and the returned http link will fail with a 40x if you try and fetch it
|
||||
// This is not our bug, but good luck getting google to fix it.
|
||||
if (strpos($href,'http:') === 0 && strpos($href,'youtu') !== false) {
|
||||
$href = str_replace('http:','https:', $href);
|
||||
}
|
||||
//if (strpos($href,'http:') === 0 && strpos($href,'youtu') !== false) {
|
||||
// $href = str_replace('http:','https:', $href);
|
||||
//}
|
||||
|
||||
$x = z_fetch_url($href . '&maxwidth=' . App::$videowidth);
|
||||
if($x['success'])
|
||||
|
||||
Reference in New Issue
Block a user