mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-09-30 08:54:19 +08:00
urldecode the file/folder name in webdav response
This commit is contained in:
parent
63d693f21b
commit
f05dcb6965
1 changed files with 2 additions and 2 deletions
|
@ -73,8 +73,8 @@ const
|
|||
const
|
||||
e = responseList.item(i),
|
||||
elem = {
|
||||
name: getDavElementByTagName(e, 'href').textContent
|
||||
.replace(pathRegex, '').replace(/\/$/, ''),
|
||||
name: decodeURIComponent(getDavElementByTagName(e, 'href').textContent
|
||||
.replace(pathRegex, '').replace(/\/$/, '')),
|
||||
isFile: false
|
||||
};
|
||||
if (getDavElementsByTagName(getDavElementByTagName(e, 'resourcetype'), 'collection').length) {
|
||||
|
|
Loading…
Add table
Reference in a new issue