From 3c0a1d5d0018daa87ad3914ea04078a9a6d05fc2 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Wed, 5 Feb 2025 15:37:12 +0300 Subject: [PATCH] fix(youtube player): Mixed content issue (#1795) --- styles/js/bbcode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/styles/js/bbcode.js b/styles/js/bbcode.js index b9a53b46b..2ae20acc6 100644 --- a/styles/js/bbcode.js +++ b/styles/js/bbcode.js @@ -437,7 +437,7 @@ function initMedia(context) { a.className = 'YTLink'; a.innerHTML = ''; window.addEvent(a, 'click', function (e) { - var vhref = e.target.nextSibling.href.replace(/^http(?:s|):\/\/www.youtube.com\/watch\?(.*)?(&?v=([a-z0-9\-_]+))(.*)?|http:\/\/youtu.be\//ig, "http://www.youtube.com/embed/$3"); + var vhref = e.target.nextSibling.href.replace(/^http(?:s|):\/\/www.youtube.com\/watch\?(.*)?(&?v=([a-z0-9\-_]+))(.*)?|http:\/\/youtu.be\//ig, "https://www.youtube.com/embed/$3"); var text = e.target.nextSibling.innerText !== "" ? e.target.nextSibling.innerText : e.target.nextSibling.href; $('#Panel_youtube').remove(); ypanel('youtube', {