mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-26 05:44:40 +02:00
Fix:Escape ebook URLs #1039
This commit is contained in:
parent
8563bdde74
commit
23a25d420c
1 changed files with 3 additions and 1 deletions
|
@ -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']
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue