bitbull-team / tracker

Time Tracker desktop client
2 stars 1 forks source link

Sanitize Redmine URL when creating/updating profile #18

Open daaru00 opened 5 years ago

daaru00 commented 5 years ago

Sanitize user's provided Redmine URL and save it always with trailing slash

daaru00 commented 5 years ago

Can be sanitized before saving form: https://github.com/bitbull-team/tracker/blob/master/src/views/profile/Edit.vue#L102 https://github.com/bitbull-team/tracker/blob/master/src/views/profile/New.vue#L169

Or directly in the store action before "pushItem" mutation: https://github.com/bitbull-team/tracker/blob/master/src/store/modules/profile/actions.js#L5