Skip to content

Commit

Permalink
Unescape paths received via url
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed Jun 19, 2016
1 parent b8ea582 commit 14ab2c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/list
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ const server = micro(async (req, res) => {
related = path.parse(path.join(__dirname, '/../assets', relative))
}

related = path.format(related)
related = unescape(path.format(related))

if (!exists(related)) {
return send(res, 404, 'Not found')
Expand Down

0 comments on commit 14ab2c6

Please sign in to comment.