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
|
|
@ -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