From 5b3558861d1dc903ff37ff67ac8837ab1ae0643a Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Thu, 26 Nov 2020 09:22:12 +0100 Subject: Properly encode path when fetching inherited shares MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/files_sharing/src/views/SharingInherited.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files_sharing/src') 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)) -- cgit v1.2.3