From 734d8f96e858cbf0e31ec8f43fb3ae204546b8b5 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 14 Feb 2014 11:38:16 -0500 Subject: [PATCH] fixing symbols in plugin static path filenames -- can I tag people in commit messages? @frissdiegurke --- src/routes/plugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/plugins.js b/src/routes/plugins.js index ee2ba89d14..2af868700c 100644 --- a/src/routes/plugins.js +++ b/src/routes/plugins.js @@ -34,7 +34,7 @@ var nconf = require('nconf'), var relPath = req._parsedUrl.pathname.replace(nconf.get('relative_path') + '/plugins/' + 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) { if (exists) {