Encode URI for file sidebar

Signed-off-by: Gary Kim <gary@garykim.dev>
This commit is contained in:
Gary Kim 2020-01-08 00:07:10 +08:00
parent e5d3efb99e
commit 409d25ebf3
No known key found for this signature in database
GPG key ID: 9349B59FB54594AC
3 changed files with 1 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View file

@ -115,7 +115,7 @@ export default {
*/
davPath() {
const user = OC.getCurrentUser().uid
return OC.linkToRemote(`dav/files/${user}${this.file}`)
return OC.linkToRemote(`dav/files/${user}${encodeURIComponent(this.file)}`)
},
/**