Skip to content
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

remove script,noscript and style tags from suggestions #990

Closed
wants to merge 1 commit into from

Conversation

sgringwe
Copy link

@sgringwe sgringwe commented Sep 8, 2014

This pull requests takes the compiled html for the suggestions and removes all scripts, noscripts and style elements. This is useful in cases where the source data is bad (contains javascript injection). Currently with this library, if it were to receive a suggestion with a script element, it would inject that into the dom and the alert would be executed.

Caveats: Would no longer allow for purposeful use of those tags in suggestions. Not sure why someone would want to do that though.

Please let me know your thoughts. Maybe this should be configurable instead? Or maybe there is a better place to make this change?

@sgringwe
Copy link
Author

sgringwe commented Sep 9, 2014

Closing in favor of #964

@sgringwe sgringwe closed this Sep 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant