From 9bc2e316b2d96245a9904da4d484f918db39ed07 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 31 Jul 2008 22:12:56 +0100 Subject: [PATCH 1/3] Escape HTML in Atom feeds, rather than relying on it being well-formed XHTML with no named entity references --- templates/atomitem.tmpl | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/templates/atomitem.tmpl b/templates/atomitem.tmpl index 19c557f30..1ff7f4f4e 100644 --- a/templates/atomitem.tmpl +++ b/templates/atomitem.tmpl @@ -10,22 +10,18 @@ - -
+ - - + + - + -
- -
- -
+ +
@@ -39,10 +35,8 @@ - -
- -
+ +
From 9b901a33647407142038175006f81e773ae5883a Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 31 Jul 2008 22:13:21 +0100 Subject: [PATCH 2/3] Escape HTML in RSS feeds, rather than relying on it being valid to stuff into a CDATA section --- templates/rssitem.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/rssitem.tmpl b/templates/rssitem.tmpl index 1144cd5e2..42936a668 100644 --- a/templates/rssitem.tmpl +++ b/templates/rssitem.tmpl @@ -21,6 +21,6 @@ - ]]> + From a64dca8356754a14ab9a4bcdd9d1a8bdba41d64b Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 31 Jul 2008 22:15:22 +0100 Subject: [PATCH 3/3] Escape HTML in Atom feed metadata rather than treating it as XHTML --- templates/atompage.tmpl | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/templates/atompage.tmpl b/templates/atompage.tmpl index e834d7693..dcb89ab5c 100644 --- a/templates/atompage.tmpl +++ b/templates/atompage.tmpl @@ -12,22 +12,18 @@ - -
+ - + - + -
- -
- -
+ +