fixing symbols in plugin static path filenames -- can I tag people in commit messages? @frissdiegurke

This commit is contained in:
Julian Lam
2014-02-14 11:38:16 -05:00
parent d0d3160fc7
commit 734d8f96e8

View File

@@ -34,7 +34,7 @@ var nconf = require('nconf'),
var relPath = req._parsedUrl.pathname.replace(nconf.get('relative_path') + '/plugins/' + req.params.id, ''); var relPath = req._parsedUrl.pathname.replace(nconf.get('relative_path') + '/plugins/' + req.params.id, '');
if (plugins.staticDirs[req.params.id]) { if (plugins.staticDirs[req.params.id]) {
var fullPath = path.join(plugins.staticDirs[req.params.id], relPath); var fullPath = path.join(plugins.staticDirs[req.params.id], decodeURIComponent(relPath));
fs.exists(fullPath, function(exists) { fs.exists(fullPath, function(exists) {
if (exists) { if (exists) {