Bugfix: Content types like application/xhtml+xml, etc. got escaped content even if...
[pkg/blosxom.git] / blosxom.cgi
index 072ddf88f03c3ccefb22c265392ef59532e0b69f..6476df1eb54d95214b7742b122491947ae8024f8 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
                 # Escape special characters inside the <link> container
 
                 # The following line should be moved more towards to top for