X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fbbcode.php;h=ee251f1f1e00d792ab34aecca5332c093ddfbfc7;hb=d1a0206cdd1a65b08feb16197fe2236c8e1a8037;hp=ebed0dbb255b60da06dd387f907de0c693193736;hpb=079c638403a3722119e54bf55c189de5d92cbcf1;p=friendica.git diff --git a/include/bbcode.php b/include/bbcode.php index ebed0dbb25..ee251f1f1e 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -36,7 +36,12 @@ function stripcode_br_cb($s) { function tryoembed($match){ $url = ((count($match)==2)?$match[1]:$match[2]); -// logger("tryoembed: $url"); + + // Always embed the SSL version + $url = str_replace(array("http://www.youtube.com/", "http://player.vimeo.com/"), + array("https://www.youtube.com/", "https://player.vimeo.com/"), $url); + + //logger("tryoembed: $url"); $o = oembed_fetch_url($url); @@ -262,9 +267,9 @@ function bb_ShareAttributes($match) { preg_match('/posted="(.*?)"/ism', $attributes, $matches); if ($matches[1] != "") $posted = $matches[1]; - $reldate = (($posted) ? " " . relative_date($posted) : ''); + $reldate = (($posted) ? " " . relative_date($posted) : ''); - $headline = '