From 3cbfd5e9bf87dbdd2990ce16894c17c316dbda72 Mon Sep 17 00:00:00 2001 From: Kevin Scaldeferri Date: Fri, 25 Nov 2005 19:53:08 +0000 Subject: [PATCH] fixing bug 1345548. Match any instance of the word "xml" in the content type to determine if we need to escape the content. --- blosxom.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2