aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-28 00:57:35 -0800
committerfriendica <info@friendica.com>2014-02-28 00:57:35 -0800
commit46f0de7120d0773f361e08298c99ef804330adff (patch)
tree0914a2143c8e000346fffaa4181f25611384e2b7 /include
parent2a7e43c08f47e140321afe910962834c4af79a9b (diff)
downloadvolse-hubzilla-46f0de7120d0773f361e08298c99ef804330adff.tar.gz
volse-hubzilla-46f0de7120d0773f361e08298c99ef804330adff.tar.bz2
volse-hubzilla-46f0de7120d0773f361e08298c99ef804330adff.zip
try to fix youtube mixed content warnings
Diffstat (limited to 'include')
-rwxr-xr-xinclude/oembed.php2
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,