server: fix serving files from paths containing accents

This commit is contained in:
jean-emmanuel 2021-04-25 20:18:35 +02:00
parent 6f6ef4aa5a
commit 4ca8d0129a
2 changed files with 2 additions and 1 deletions

View file

@ -6,6 +6,7 @@
- visualizer: remove `bars` and `dots` option
- plot: fix `bars` option
- project tree: clear filter input when loading a session
- server: fix serving files from paths containing accents
- widgets
- image: add pre defined values for `size`, `position` and `repeat` properties

View file

@ -116,7 +116,7 @@ function httpRoute(req, res) {
// Resolution order: session path, theme path, absolute path
var id = urlparser.parse('?' + req.headers.cookie, true).query.client_id,
resolvedPath = resolvePath(url.replace(/%20/g, ' '), id)
resolvedPath = resolvePath(decodeURI(url), id)
if (resolvedPath) {
try {