Skip to content

Commit

Permalink
Merge pull request #24388 from nextcloud/backport/24382/stable18
Browse files Browse the repository at this point in the history
[stable18] Properly encode path when fetching inherited shares
  • Loading branch information
MorrisJobke authored Dec 1, 2020
2 parents f0897d8 + 81e357e commit ec6a1e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions apps/files_sharing/js/dist/files_sharing_tab.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/files_sharing/js/dist/files_sharing_tab.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/files_sharing/src/views/SharingInherited.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit ec6a1e8

Please sign in to comment.