Поправки багов

This commit is contained in:
Book Pauk
2022-11-23 17:31:47 +07:00
parent a8ed8b29e5
commit 410aa01ac9
2 changed files with 2 additions and 1 deletions

View File

@@ -139,7 +139,7 @@ class AuthorPage extends BasePage {
}) })
); );
} else { } else {
const title = b.book.title || 'Без названия'; const title = `${b.book.title || 'Без названия'} (${b.book.ext})`;
entry.push( entry.push(
this.makeEntry({ this.makeEntry({
id: b.book._uid, id: b.book._uid,

View File

@@ -45,6 +45,7 @@ class BasePage {
} }
makeLink(attrs) { makeLink(attrs) {
attrs.href = he.escape(attrs.href);
return {'*ATTRS': attrs}; return {'*ATTRS': attrs};
} }