Properly encode path when fetching inherited shares

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/24382/head
Julius Härtl 4 years ago
parent aea31d5ddd
commit 5b3558861d
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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

Loading…
Cancel
Save