Skip to content

Commit 72a3f5c

Browse files
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 921f944 commit 72a3f5c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

apps/files_sharing/js/dist/files_sharing_tab.js

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