try to fix youtube mixed content warnings

This commit is contained in:
friendica
2014-02-28 00:57:35 -08:00
parent 2a7e43c08f
commit 46f0de7120
99 changed files with 1365 additions and 891 deletions

View File

@@ -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,