Skip to content

Commit 81e357e

Browse files
juliusknorrMorrisJobke
authored andcommitted
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>
1 parent 5511fb2 commit 81e357e

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

apps/files_sharing/js/dist/files_sharing_tab.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/files_sharing/js/dist/files_sharing_tab.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/files_sharing/src/views/SharingInherited.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export default {
128128
async fetchInheritedShares() {
129129
this.loading = true
130130
try {
131-
const url = generateOcsUrl(`apps/files_sharing/api/v1/shares/inherited?format=json&path=${this.fullPath}`, 2)
131+
const url = generateOcsUrl(`apps/files_sharing/api/v1/shares/inherited?format=json&path=${encodeURIComponent(this.fullPath)}`, 2)
132132
const shares = await axios.get(url.replace(/\/$/, ''))
133133
this.shares = shares.data.ocs.data
134134
.map(share => new Share(share))

0 commit comments

Comments
 (0)