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

Assert response is html before injecting alert or console outputs #27

Merged
merged 2 commits into from Jul 24, 2018

Conversation

stevelacey
Copy link
Contributor

The script tags were getting injected into JSON responses (and obscurely breaking my tests) πŸ™ƒοΈ

@erikverbeek
Copy link
Contributor

I just had this break an API call as well. The added script tag appended to the JSON string turns the whole thing to null once it gets parsed in the frond-end.

@stevelacey
Copy link
Contributor Author

@mpociot ping πŸ˜„β˜οΈ

@mpociot mpociot merged commit 488797e into beyondcode:master Jul 24, 2018
@stevelacey stevelacey deleted the html-check branch July 24, 2018 09:09
@stevelacey
Copy link
Contributor Author

@mpociot and tag a release πŸ˜„πŸ™πŸΌ thanks!

@mpociot
Copy link
Member

mpociot commented Jul 24, 2018

done

@stevelacey
Copy link
Contributor Author

πŸ™Œ

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

Successfully merging this pull request may close these issues.

None yet

3 participants