Skip to content

Commit

Permalink
fix: decodeURIComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
abernier committed May 16, 2022
1 parent 5a81ac3 commit 76aeacc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = function redirect(settings) {
return function (req, res, next) {
// console.log('redirect middleware');

const n = req.query[paramName];
const n = decodeURIComponent(req.query[paramName]);

const oldRedirect = res.redirect;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@abernier/redirect",
"version": "1.0.6",
"version": "1.0.7",
"description": "Connect/Express ?redirect middleware",
"exports": {
"require": "./index.cjs",
Expand Down

0 comments on commit 76aeacc

Please sign in to comment.