-
Notifications
You must be signed in to change notification settings - Fork 429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable soundcloud player #90
Conversation
Interesting, this works? src.indexOf(reYoutube) .. I don't see this feature in the JavaScript docs (with a regex as a parameter). Do you have some soundcloud url docs so we can see what we are whitelisting? |
@jcalfee |
I've just merged this manually in the |
I reverted this for now it has bugs it was not tested. @roadscape was going to submit something he found. Please fix and create another merge request and let us have more time to review. This code touches user provided content so it needs to have extra testing .. We do this internally if we have to modify code like this. |
We found some issues with this commit and ran out of time this week to fix...
Also, in soundcloud embed I see there are multiple query params which need to be sanitized and whitelisted:
We definitely want auto_play to be forced to false. I don't know about the other params but to start with we should force-set all params to reasonable defaults (except for 'url' of course). I'd recommend parsing out the url param and building the |
Yea I should've caught that, sorry. The indexOf won't work like that with a regex expression, it should be replaced with a regex test instead, or a srcYoutube string could be added. |
…coinpan_allowpw Open password login for SCT
…coinpan_allowpw Open password login for SCT
No description provided.