From 3f89c2bf0aeeb55358a185de924c497fda723ab4 Mon Sep 17 00:00:00 2001 From: Abhinav Adduri Date: Thu, 13 Jul 2017 12:55:34 -0700 Subject: [PATCH] changed to decodeURIComponent in server code --- server/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/server.js b/server/server.js index 0508f092..294cb78a 100644 --- a/server/server.js +++ b/server/server.js @@ -94,7 +94,7 @@ app.get('/download/:id', (req, res) => { .length(id) .then(contentLength => { res.render('download', { - filename: decodeURI(filename), + filename: decodeURIComponent(filename), filesize: bytes(contentLength), trackerId: conf.analytics_id, dsn: conf.sentry_id