From 410aa01ac9bc27dd4cc89ff0355dac7dde0043aa Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Wed, 23 Nov 2022 17:31:47 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BA?= =?UTF-8?q?=D0=B8=20=D0=B1=D0=B0=D0=B3=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/core/opds/AuthorPage.js | 2 +- server/core/opds/BasePage.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server/core/opds/AuthorPage.js b/server/core/opds/AuthorPage.js index fb31546..5733f59 100644 --- a/server/core/opds/AuthorPage.js +++ b/server/core/opds/AuthorPage.js @@ -139,7 +139,7 @@ class AuthorPage extends BasePage { }) ); } else { - const title = b.book.title || 'Без названия'; + const title = `${b.book.title || 'Без названия'} (${b.book.ext})`; entry.push( this.makeEntry({ id: b.book._uid, diff --git a/server/core/opds/BasePage.js b/server/core/opds/BasePage.js index 645e279..85d316b 100644 --- a/server/core/opds/BasePage.js +++ b/server/core/opds/BasePage.js @@ -45,6 +45,7 @@ class BasePage { } makeLink(attrs) { + attrs.href = he.escape(attrs.href); return {'*ATTRS': attrs}; }