From 46f0de7120d0773f361e08298c99ef804330adff Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 28 Feb 2014 00:57:35 -0800 Subject: try to fix youtube mixed content warnings --- include/oembed.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/oembed.php') diff --git a/include/oembed.php b/include/oembed.php index d8671a752..f9e9012d0 100755 --- a/include/oembed.php +++ b/include/oembed.php @@ -99,6 +99,8 @@ function oembed_format_object($j){ $th=120; $tw = $th*$tr; $tpl=get_markup_template('oembed_video.tpl'); + if(strstr($embedurl,'youtu')) + $embedurl = str_replace('http:','https:',$embedurl); $ret.=replace_macros($tpl, array( '$baseurl' => $a->get_baseurl(), '$embedurl'=>$embedurl, -- cgit v1.2.3