hngprojects / hng_boilerplate_golang_web

Apache License 2.0
77 stars 50 forks source link

fix: input validation for create help center topic #295

Closed uloamaka closed 3 months ago

uloamaka commented 3 months ago

Description

​Fixed the input validation to prevent bad input such as; into the DB. API DOC LINK

Related Issue (Link to Github issue)

271​

How Has This Been Tested?

​Tested by inputting various bad inputs for both the title and the content input field, it should clean the bad input characters and pass a valid string. It cleans the bad characters when tested with postman.

Screenshots (if appropriate - Postman, etc):

Screenshot (356) IT CLEANS BAD INPUT =>: Screenshot (360)

Types of changes