habit-tracker
habit-tracker copied to clipboard
Habit with whitespace gets added to DB but is not accessible from UI
When a user adds a habit with whitespace surrounding so like " habit" or "habit " it will allow the user to use a habit name that already exists and will not be accessible from the UI because the name in the URL will not match the name in the habit list. This means the user can't delete the habit or do anything with it, but it shows in the list of habits
Sounds like you should use URL/Percent Encoding.