Node.js based forum software built for the modern web
entity decoding in filenames
Julian Lam0fecbf7cbffb
diff --git a/src/routes/plugins.js b/src/routes/plugins.jsindex 774fee7217..00f37d8d02 100644--- a/src/routes/plugins.js+++ b/src/routes/plugins.js@@ -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) {