From: Axel Beckert Date: Tue, 22 Jul 2008 21:41:14 +0000 (+0000) Subject: Bugfix: Content types like application/xhtml+xml, etc. got escaped content even if... X-Git-Tag: debian/2.1.2-2~34 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=7b68aaee7ca44bbdcafab5f6296527e265b440ca;p=pkg%2Fblosxom.git Bugfix: Content types like application/xhtml+xml, etc. got escaped content even if this is only necessary in RSS feeds, etc. (Fixes: #1717980) --- 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