Fix: escape special characters in provider urls

This commit is contained in:
mx03 committed 2021-12-30 10:57:28 +01:00
1 parent 5edff98942
commit 02db145a0c
5 files changed
+15 -4

No files matched your search

+1 -1
View File
@@ -85,7 +85,7 @@ class OpenLibrary {
}
async searchTitle(title) {
title = title.replace(/'/g, '')
title = encodeURIComponent(title);
var lookupData = await this.get(`/search.json?title=${title}`)
if (!lookupData) {
return {