Skip to content

Commit

Permalink
Update nuts.js
Browse files Browse the repository at this point in the history
  • Loading branch information
wallymathieu authored Dec 11, 2017
1 parent 80cbb87 commit f37116a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ Nuts.prototype.onUpdateRedirect = function(req, res, next) {
if (!req.query.version) throw new Error('Requires "version" parameter');
if (!req.query.platform) throw new Error('Requires "platform" parameter');

return res.redirect('/update/'+_.escape(req.query.platform)+'/'+req.query.version);
return res.redirect('/update/'+_.escape(req.query.platform)+'/'+_.escape(req.query.version));
})
.fail(next);
};
Expand Down

0 comments on commit f37116a

Please sign in to comment.