Skip to content

Build out sanitizeInput.js #13

Description

@kennyctran

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions