X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fblosxom.git;a=blobdiff_plain;f=blosxom.cgi;h=39ae927b36fc9e89f3c070998d28324d13a6219e;hp=642a2bf31cf3cc66c433836eca986755fb22eb27;hb=1cfbcdaad3e5f6f0baceb435027632841119d916;hpb=fae8966333a61c57f4181cd5c6a4d3ffa42774f9 diff --git a/blosxom.cgi b/blosxom.cgi index 642a2bf..39ae927 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -165,7 +165,7 @@ sub load_template { return &$template(@_); } -# Define default find subroutine +# Define default entries subroutine $entries = sub { my(%files, %indexes, %others); @@ -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;