mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-04 23:00:31 +01:00
decodeURIComponent for uploaded file/image
This commit is contained in:
@@ -23,7 +23,7 @@ file.saveFileToLocal = function(filename, folder, tempPath, callback) {
|
||||
|
||||
is.on('end', function () {
|
||||
callback(null, {
|
||||
url: nconf.get('upload_url') + folder + '/' + filename
|
||||
url: nconf.get('upload_url') + folder + '/' + encodeURIComponent(filename)
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user