server: fix serving files from paths containing accents
This commit is contained in:
parent
6f6ef4aa5a
commit
4ca8d0129a
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue