diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2020-11-26 10:23:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-26 10:23:16 +0100 |
commit | bb7e1bdfb791a08132fadbebe07d65f47ef209eb (patch) | |
tree | 02894cda255913f5255f09b8f0bd8d2f879fdfad /apps/files_sharing/src | |
parent | aea31d5dddfe261e51f7462c8a8afdbb0114d1d9 (diff) | |
parent | 5b3558861d1dc903ff37ff67ac8837ab1ae0643a (diff) | |
download | nextcloud-server-bb7e1bdfb791a08132fadbebe07d65f47ef209eb.tar.gz nextcloud-server-bb7e1bdfb791a08132fadbebe07d65f47ef209eb.zip |
Merge pull request #24382 from nextcloud/bugfix/noid/urlencode-inherited-shares
Properly encode path when fetching inherited shares
Diffstat (limited to 'apps/files_sharing/src')
-rw-r--r-- | apps/files_sharing/src/views/SharingInherited.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/src/views/SharingInherited.vue b/apps/files_sharing/src/views/SharingInherited.vue index b688a70fa1a..000710a50d0 100644 --- a/apps/files_sharing/src/views/SharingInherited.vue +++ b/apps/files_sharing/src/views/SharingInherited.vue @@ -128,7 +128,7 @@ export default { async fetchInheritedShares() { this.loading = true try { - const url = generateOcsUrl(`apps/files_sharing/api/v1/shares/inherited?format=json&path=${this.fullPath}`, 2) + const url = generateOcsUrl(`apps/files_sharing/api/v1/shares/inherited?format=json&path=${encodeURIComponent(this.fullPath)}`, 2) const shares = await axios.get(url.replace(/\/$/, '')) this.shares = shares.data.ocs.data .map(share => new Share(share)) |