mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 21:35:47 +03:00
LsColJob: fix getting the sizes when the path contains %-encoded chars
This commit is contained in:
parent
fb87ad1442
commit
d8b621d05f
1 changed files with 2 additions and 2 deletions
|
@ -361,10 +361,10 @@ bool LsColJob::finished()
|
|||
reader.namespaceUri() == QLatin1String("DAV:")) {
|
||||
QString name = reader.name().toString();
|
||||
if (name == QLatin1String("href")) {
|
||||
currentItem = reader.readElementText();
|
||||
currentItem = QUrl::fromPercentEncoding(reader.readElementText().toLatin1());
|
||||
} else if (name == QLatin1String("collection") &&
|
||||
!currentItem.isEmpty()) {
|
||||
folders.append(QUrl::fromEncoded(currentItem.toLatin1()).path());
|
||||
folders.append(currentItem);
|
||||
} else if (name == QLatin1String("quota-used-bytes") &&
|
||||
!currentItem.isEmpty()) {
|
||||
bool ok = false;
|
||||
|
|
Loading…
Reference in a new issue