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 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