diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-11-26 09:22:12 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-11-26 09:25:17 +0100 |
commit | 5b3558861d1dc903ff37ff67ac8837ab1ae0643a (patch) | |
tree | 02894cda255913f5255f09b8f0bd8d2f879fdfad /apps/files_sharing/src/views | |
parent | aea31d5dddfe261e51f7462c8a8afdbb0114d1d9 (diff) | |
download | nextcloud-server-5b3558861d1dc903ff37ff67ac8837ab1ae0643a.tar.gz nextcloud-server-5b3558861d1dc903ff37ff67ac8837ab1ae0643a.zip |
Properly encode path when fetching inherited shares
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files_sharing/src/views')
-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)) |