changed to decodeURIComponent in server code

This commit is contained in:
Abhinav Adduri 2017-07-13 12:55:34 -07:00
parent b419a6025f
commit 3f89c2bf0a

View file

@ -94,7 +94,7 @@ app.get('/download/:id', (req, res) => {
.length(id) .length(id)
.then(contentLength => { .then(contentLength => {
res.render('download', { res.render('download', {
filename: decodeURI(filename), filename: decodeURIComponent(filename),
filesize: bytes(contentLength), filesize: bytes(contentLength),
trackerId: conf.analytics_id, trackerId: conf.analytics_id,
dsn: conf.sentry_id dsn: conf.sentry_id