Bug#808262: http://planet.debian.org/opml.xml produces an error because there is a non-escaped char " in one feed title
Hi all
I don't know Django but for what I've read, I think that adding braces
to the variables related to the title in /templates/opml.xml
may escape the quotes, and solve this issue.
I'm attaching a patch for the opml.xml template; please apply it if
you think it's correct; or I can apply some days later if nobody
complains (I guess that would only break the opml feed if it's wrong,
and that feed is broken now anyways...).
Cheers
--
Laura Arjona Reina
https://wiki.debian.org/LauraArjona
Index: opml.xml.dj
===================================================================
--- opml.xml.dj (revisión: 2109)
+++ opml.xml.dj (copia de trabajo)
@@ -9,6 +9,6 @@
<body>
{% for channel in Channels %}
- <outline type="rss" text="{{ channel.name }}" xmlUrl="{{channel.url }}" title="{% firstof channel.title channel.name %}"{% if channel.channel_link %} htmlUrl="{{ channel.channel_link }}"{% endif %} /> {% endfor %}
+ <outline type="rss" text="{{ channel.name }}" xmlUrl="{{channel.url }}" title="{% firstof {{ channel.title }} {{ channel.name }} %}"{% if channel.channel_link %} htmlUrl="{{ channel.channel_link }}"{% endif %} /> {% endfor %}
</body>
</opml>
Reply to: