mirror of
https://github.com/9001/copyparty.git
synced 2026-02-27 14:03:10 -07:00
web/opds: escape titles
Moon Reader errored out in XML parsing because and an amperstand in one of my book titles wasn't esacped. Ooops! Signed-off-by: Brandon Philips <brandon@ifup.org>
This commit is contained in:
parent
1c8d37df41
commit
70ad121869
|
|
@ -5,7 +5,7 @@
|
|||
type="application/opensearchdescription+xml"/>
|
||||
{%- for d in dirs %}
|
||||
<entry>
|
||||
<title>{{ d.name }}</title>
|
||||
<title>{{ d.name | e }}</title>
|
||||
<link rel="subsection"
|
||||
href="{{ d.href | e }}"
|
||||
type="application/atom+xml;profile=opds-catalog"/>
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
{%- endfor %}
|
||||
{%- for f in files %}
|
||||
<entry>
|
||||
<title>{{ f.name }}</title>
|
||||
<title>{{ f.name | e }}</title>
|
||||
<updated>{{ f.iso8601 }}</updated>
|
||||
<link rel="http://opds-spec.org/acquisition"
|
||||
href="{{ f.href | e }}"
|
||||
|
|
@ -31,4 +31,4 @@
|
|||
{%- endif %}
|
||||
</entry>
|
||||
{%- endfor %}
|
||||
</feed>
|
||||
</feed>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
|
||||
<ShortName>C {{ longname | truncate(14) }}</ShortName>
|
||||
<Description>Copyparty {{ longname }}</Description>
|
||||
<ShortName>C {{ longname | truncate(14) | e }}</ShortName>
|
||||
<Description>Copyparty {{ longname | e }}</Description>
|
||||
<Url type="application/atom+xml;profile=opds-catalog" template="{{ search_url }}?opds&q={searchTerms}"/>
|
||||
</OpenSearchDescription>
|
||||
|
|
|
|||
Loading…
Reference in a new issue