Merge pull request #11152 from nextcloud/davclient-js-decode-14

[14] fix js files client for user names with spaces
This commit is contained in:
John Molakvoæ 2018-09-11 10:46:12 +02:00 committed by GitHub
commit 5209348c64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@
* @return {Array.<FileInfo>} array of file info * @return {Array.<FileInfo>} array of file info
*/ */
_parseFileInfo: function(response) { _parseFileInfo: function(response) {
var path = response.href; var path = decodeURIComponent(response.href);
if (path.substr(0, this._root.length) === this._root) { if (path.substr(0, this._root.length) === this._root) {
path = path.substr(this._root.length); path = path.substr(this._root.length);
} }