Problem/Motivation
When using the BBCode module on a site running under SSL any YouTube embedded videos trigger an "insecure content" warning that is disruptive to the visitor flow. On some browsers this breaks the site until the visitor manually selects either a "load" or "don't load" option.
Proposed Resolution
All YouTube videos are embedded using the https protocol. This fixes the insecure content warning on sites using SSL and presents no major downsides to sites that are not using SSL. Attached patch updates the YouTube filter definition to load the https player along with using YouTube's new
embed standard.| Comment | File | Size | Author |
|---|---|---|---|
| #1 | youtubefilter-relativeprotocol.patch | 1.06 KB | Ignigena |
| youtube-filter-ssl.patch | 1.07 KB | Ignigena |
Comments
Comment #1
Ignigena commentedUpdated the patch (attached)
All YouTube embeds are done with a relative protocol URL ("//www.youtube.com" vs. "http://www.youtube.com") This will automatically adopt either the HTTP or HTTPS protocol depending on which the site is running.
Comment #2
jordanmagnuson commented#1 working well for me.
Comment #3
naudefj commentedPatch committed. Thank you so much!