habit-tracker icon indicating copy to clipboard operation
habit-tracker copied to clipboard

Habit with whitespace gets added to DB but is not accessible from UI

Open bashbunni opened this issue 3 years ago • 1 comments

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

bashbunni avatar Dec 10 '21 00:12 bashbunni

Sounds like you should use URL/Percent Encoding.

taigrr avatar Dec 10 '21 22:12 taigrr