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 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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)}`)
},
/**