mirror of
https://github.com/Metastem/wikiless
synced 2024-12-06 19:16:58 +01:00
decode filenames so we do not end up with too long filenames
This commit is contained in:
+1
-1
@@ -205,7 +205,7 @@ module.exports = function(redis) {
|
||||
media_path = path.join(__dirname, '../media')
|
||||
}
|
||||
|
||||
const path_with_filename = `${media_path}${file_path}`
|
||||
const path_with_filename = decodeURI(`${media_path}${file_path}`)
|
||||
let path_without_filename = path_with_filename.split('/')
|
||||
path_without_filename.pop()
|
||||
path_without_filename = path_without_filename.join('/')
|
||||
|
||||
Reference in New Issue
Block a user