Skip to content
This repository has been archived by the owner on Apr 15, 2021. It is now read-only.

YouTube HTTPS issue #61

Open
gilbitron opened this issue Apr 4, 2016 · 6 comments
Open

YouTube HTTPS issue #61

gilbitron opened this issue Apr 4, 2016 · 6 comments

Comments

@gilbitron
Copy link
Contributor

I thought I'd mention a minor glitch I found in your javascript. I bought a site with your js in it, which lead me here.

nivo-lightbox.min.js

You had:

... if(o[1]=="youtu"){a="http://www.youtube.com/embed ...

this section of code converts the short link into an embed link. While this works, it has a minor issue of ONLY working on http sites, as the protocall is hard coded.

Changing it to:

if(o[1]=="youtu"){a="https://www.youtube.com/embed

allows it to work on both http and https sites, as https content loads correctly over http, however the inverse is not true on all browsers.

There are two instances of the issue in your javascript.

@deidyomega
Copy link

Looks like there is already a pull request for this:

752fc56

@LukeTowers
Copy link

Yeah, I submitted that pull request a while ago. Is there anything I have to do on my end to push it through?

@LukeTowers
Copy link

Although, I might have to submit it again, the fix wasn't included in the minified version of the JS.

@alejo-jm
Copy link

alejo-jm commented May 24, 2016

hello the error with this is on the lines (197,201,205) "nivo-lightbox.js", this line have burned:
http://www. should be //www.
for keep the https or http on site working

@LukeTowers
Copy link

Yes, that is what the pull request changes.

@tmugford
Copy link

tmugford commented Sep 8, 2017

This fix was merged in PR #58.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants