trim place's name and description + event's title - fix #189

This commit is contained in:
lesion
2022-10-27 15:09:11 +02:00
parent 1fba720835
commit 1add2ffae7
5 changed files with 58 additions and 52 deletions

View File

@@ -33,7 +33,7 @@ export default {
asyncData({ $axios, params, error }) {
try {
const place = params.place
return $axios.$get(`/place/${place}`)
return $axios.$get(`/place/${encodeURIComponent(place)}`)
} catch (e) {
error({ statusCode: 400, message: 'Error!' })
}