aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-02-26 09:03:58 +0000
committerMario <mario@mariovavti.com>2021-02-26 09:03:58 +0000
commitfbb1d6aa41d9eb7a27b4a8bc79747ac0797db0c7 (patch)
tree86b8ed42e016bb9cbfcb5ececbc03585a941a23a
parent36c9f9abff0d9d4c52d3307bb563d6fb5067ac7b (diff)
parent5440a65607f3c67cc6ecacbf2d54c5895e5bc212 (diff)
downloadvolse-hubzilla-fbb1d6aa41d9eb7a27b4a8bc79747ac0797db0c7.tar.gz
volse-hubzilla-fbb1d6aa41d9eb7a27b4a8bc79747ac0797db0c7.tar.bz2
volse-hubzilla-fbb1d6aa41d9eb7a27b4a8bc79747ac0797db0c7.zip
Merge branch 'dev' into 'dev'
Do not overwrite HTTP schema for Youtube on embedding See merge request hubzilla/core!1917
-rw-r--r--include/oembed.php6
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'])