Single quotes must be escaped in XML, too
authorAxel Beckert <xtaran@users.sourceforge.net>
Tue, 22 Jul 2008 01:17:30 +0000 (01:17 +0000)
committerAxel Beckert <xtaran@users.sourceforge.net>
Tue, 22 Jul 2008 01:17:30 +0000 (01:17 +0000)
blosxom.cgi

index e415d60984c50e6f0596c595632d5a429ebb5546..fb2a45f6e12084e6d56ad3977d497c72e84eb97b 100755 (executable)
@@ -667,7 +667,8 @@ sub generate {
                     '<' => '&lt;',
                     '>' => '&gt;',
                     '&' => '&amp;',
-                    '"' => '&quot;'
+                    '"' => '&quot;',
+                    "'" => '&apos;'
                 );
                 my $escape_re = join '|' => keys %escape;
                 $title =~ s/($escape_re)/$escape{$1}/g;