mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 15:35:47 +01:00
entity decoding in filenames
This commit is contained in:
@@ -44,7 +44,7 @@ var nconf = require('nconf'),
|
|||||||
|
|
||||||
if (matches) {
|
if (matches) {
|
||||||
async.map(matches, function(mappedPath, next) {
|
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) {
|
fs.exists(filePath, function(exists) {
|
||||||
if (exists) {
|
if (exists) {
|
||||||
|
|||||||
Reference in New Issue
Block a user