blob: 88065e79cf09c8091cb635abcaeebdc59dfee441 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
'use strict'
const logger = require('../../logger')
const response = require('../../response')
module.exports = function (req, res, next) {
try {
decodeURIComponent(req.path)
} catch (err) {
logger.error(err)
return response.errorBadRequest(res)
}
next()
}
|