Skip to content

Commit 2a1ec49

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 2a1ec49

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)