mirror of
https://github.com/nextcloud/server.git
synced 2026-03-08 17:30:52 -04:00
Merge pull request #24382 from nextcloud/bugfix/noid/urlencode-inherited-shares
Properly encode path when fetching inherited shares
This commit is contained in:
commit
bb7e1bdfb7
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
|
|
@ -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…
Reference in a new issue