Skip to content

Commit 19304d6

Browse files
committed
oops
1 parent e94ef0f commit 19304d6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

routes/redirect.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ module.exports = Router()
1414
if (
1515
req.params.hash.length < schema.Link.properties.hash.minLength ||
1616
req.params.hash.length > schema.Link.properties.hash.maxLength ||
17-
!new RegExp(schema.Link.properties.hash.pattern, 'u').test(req.params)
17+
!new RegExp(schema.Link.properties.hash.pattern, 'u').test(
18+
req.params.hash
19+
)
1820
)
1921
return res.sendStatus(404)
2022

0 commit comments

Comments
 (0)