From 7b68aaee7ca44bbdcafab5f6296527e265b440ca Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Tue, 22 Jul 2008 21:41:14 +0000 Subject: [PATCH] Bugfix: Content types like application/xhtml+xml, etc. got escaped content even if this is only necessary in RSS feeds, etc. (Fixes: #1717980) --- blosxom.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/blosxom.cgi b/blosxom.cgi index 072ddf8..6476df1 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -660,7 +660,9 @@ sub generate { } } - if ( $encode_xml_entities && $content_type =~ m{\bxml\b} ) { + if ( $encode_xml_entities && + $content_type =~ m{\bxml\b} && + $content_type !~ m{\bxhtml\b} ) { # Escape special characters inside the container # The following line should be moved more towards to top for -- 2.39.5