Properly encode path when fetching inherited shares

Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
This commit is contained in:
Julius Härtl 2020-11-26 09:22:12 +01:00 committed by npmbuildbot-nextcloud[bot]
parent 921f9441d3
commit 72a3f5cd31
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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))