diff options
author | friendica <info@friendica.com> | 2014-02-28 00:57:35 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-02-28 00:57:35 -0800 |
commit | 46f0de7120d0773f361e08298c99ef804330adff (patch) | |
tree | 0914a2143c8e000346fffaa4181f25611384e2b7 /include/oembed.php | |
parent | 2a7e43c08f47e140321afe910962834c4af79a9b (diff) | |
download | volse-hubzilla-46f0de7120d0773f361e08298c99ef804330adff.tar.gz volse-hubzilla-46f0de7120d0773f361e08298c99ef804330adff.tar.bz2 volse-hubzilla-46f0de7120d0773f361e08298c99ef804330adff.zip |
try to fix youtube mixed content warnings
Diffstat (limited to 'include/oembed.php')
-rwxr-xr-x | include/oembed.php | 2 |
1 files changed, 2 insertions, 0 deletions
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, |