We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 977775f commit f909e48Copy full SHA for f909e48
lib/backend.js
@@ -232,12 +232,12 @@ exports.createServer = (dynamodb, docClient) => {
232
if (req.query.hash) {
233
if (req.query.range) {
234
return res.redirect(
235
- `/tables/${TableName}/items/${req.query.hash}${encodeURIComponent(
236
- ','
237
- )}${req.query.range}`
+ `/tables/${encodeURIComponent(TableName)}/items/${
+ encodeURIComponent(req.query.hash)},${encodeURIComponent(req.query.range)}`
238
)
239
} else {
240
- return res.redirect(`/tables/${TableName}/items/${req.query.hash}`)
+ return res.redirect(`/tables/${
+ encodeURIComponent(TableName)}/items/${encodeURIComponent(req.query.hash)}`)
241
}
242
243
0 commit comments