Bugfix: Content types like application/xhtml+xml, etc. got escaped content even if...
authorAxel Beckert <xtaran@users.sourceforge.net>
Tue, 22 Jul 2008 21:41:14 +0000 (21:41 +0000)
committerAxel Beckert <xtaran@users.sourceforge.net>
Tue, 22 Jul 2008 21:41:14 +0000 (21:41 +0000)
blosxom.cgi

index 072ddf8..6476df1 100755 (executable)
@@ -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 <link> container
 
                 # The following line should be moved more towards to top for