Fix:Escape ebook URLs #1039

This commit is contained in:
advplyr 2022-10-04 17:29:26 -05:00
parent 8563bdde74
commit 23a25d420c

View File

@ -96,7 +96,9 @@ export default {
if (itemRelPath.startsWith('/')) itemRelPath = itemRelPath.slice(1) if (itemRelPath.startsWith('/')) itemRelPath = itemRelPath.slice(1)
var relPath = this.ebookFile.metadata.relPath var relPath = this.ebookFile.metadata.relPath
if (relPath.startsWith('/')) relPath = relPath.slice(1) if (relPath.startsWith('/')) relPath = relPath.slice(1)
return `/ebook/${this.libraryId}/${this.folderId}/${itemRelPath}/${relPath}`
const relRelPath = this.$encodeUriPath(`${itemRelPath}/${relPath}`)
return `/ebook/${this.libraryId}/${this.folderId}/${relRelPath}`
}, },
userToken() { userToken() {
return this.$store.getters['user/getToken'] return this.$store.getters['user/getToken']