Skip to content

Commit

Permalink
Escape the status field during updates. Fixes #24
Browse files Browse the repository at this point in the history
  • Loading branch information
luketn committed Jul 24, 2018
1 parent f50087b commit 568396b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infrastructure/services/rides/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module.exports.update = (event, context, callback) => {
fbLink: `${escape(data.fbLink)}`,
driverGender: `${escape(data.driverGender)}`,
carType: `${escape(data.carType)}`,
status: `${data.status}`,
status: `${escape(data.status)}`,
deleted: `0`,
suburbFrom: `${escape(data.locationFrom.suburb)}`,
placeNameFrom: `${escape(data.locationFrom.placeName)}`,
Expand Down

0 comments on commit 568396b

Please sign in to comment.