diff options
author | Max Kostikov <max@kostikov.co> | 2021-02-25 16:35:19 +0000 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2021-02-25 16:35:19 +0000 |
commit | 5440a65607f3c67cc6ecacbf2d54c5895e5bc212 (patch) | |
tree | febdfe2b400e59e4d051b4c60c35e30f87787785 /include | |
parent | 463a8d338ec0e7b340bb6afd00c028dc9633832e (diff) | |
download | volse-hubzilla-5440a65607f3c67cc6ecacbf2d54c5895e5bc212.tar.gz volse-hubzilla-5440a65607f3c67cc6ecacbf2d54c5895e5bc212.tar.bz2 volse-hubzilla-5440a65607f3c67cc6ecacbf2d54c5895e5bc212.zip |
Do not overwrite HTTP schema for Youtube on embedding
Diffstat (limited to 'include')
-rw-r--r-- | include/oembed.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/oembed.php b/include/oembed.php index 01cd8945f..9a25686fa 100644 --- a/include/oembed.php +++ b/include/oembed.php @@ -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']) |