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

Build out sanitizeInput.js #13

Open
kennyctran opened this issue May 15, 2021 · 0 comments
Open

Build out sanitizeInput.js #13

kennyctran opened this issue May 15, 2021 · 0 comments

Comments

@kennyctran
Copy link
Collaborator

kennyctran commented May 15, 2021

The function sanitizeInput.js needs to be built out to protect from XSS attacks prior to the information is added to the database. The client should be able to pull from the database with full confidence that the input is escaped and sanitized.

If the the body received in the function is an empty string OR after sanitizing is an empty string, throw an error and do not add it to the database.

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

No branches or pull requests

1 participant