entity decoding in filenames

This commit is contained in:
Julian Lam
2014-02-28 23:38:04 -05:00
parent 6bc759748f
commit 0fecbf7cbf

View File

@@ -44,7 +44,7 @@ var nconf = require('nconf'),
if (matches) {
async.map(matches, function(mappedPath, next) {
var filePath = path.join(plugins.staticDirs[mappedPath], relPath.slice(mappedPath.length));
var filePath = path.join(plugins.staticDirs[mappedPath], decodeURIComponent(relPath.slice(mappedPath.length)));
fs.exists(filePath, function(exists) {
if (exists) {