diff options
Diffstat (limited to 'include')
-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, |