From: Kevin Scaldeferri Date: Fri, 25 Nov 2005 19:53:08 +0000 (+0000) Subject: fixing bug 1345548. X-Git-Tag: debian/2.1.2-2~134 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;ds=inline;h=3cbfd5e9bf87dbdd2990ce16894c17c316dbda72;hp=fae8966333a61c57f4181cd5c6a4d3ffa42774f9;p=pkg%2Fblosxom.git fixing bug 1345548. Match any instance of the word "xml" in the content type to determine if we need to escape the content. --- diff --git a/blosxom.cgi b/blosxom.cgi index 642a2bf..9f58a6c 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -375,7 +375,7 @@ sub generate { # Plugins: Story foreach my $plugin ( @plugins ) { $plugins{$plugin} > 0 and $plugin->can('story') and $entries = $plugin->story($path, $fn, \$story, \$title, \$body) } - if ($content_type =~ m{\Wxml$}) { + if ($content_type =~ m{\bxml\b$}) { # Escape <, >, and &, and to produce valid RSS my %escape = ('<'=>'<', '>'=>'>', '&'=>'&', '"'=>'"'); my $escape_re = join '|' => keys %escape;