}
function get(req, res, next) {
- var filePath = req.params[0];
+ var filePath = decodeURIComponent(req.params[0]);
var absoluteFilePath = getAbsolutePath(filePath);
if (!absoluteFilePath) return next(new HttpError(403, 'Path not allowed'));
}
function del(req, res, next) {
- var filePath = req.params[0];
+ var filePath = decodeURIComponent(req.params[0]);
var recursive = !!req.query.recursive;
var dryRun = !!req.query.dryRun;