From: Gavin Carr Date: Thu, 1 Nov 2007 11:18:26 +0000 (+0000) Subject: Fix overgeneralised story hook in rss20. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=caaf09e3ed3f4f9ddba8b709d47f90c2578db8a5;hp=20f6152e08a8e4e7bc9a063cf5d4b4a73f8c3b48;p=matthijs%2Fupstream%2Fblosxom-plugins.git Fix overgeneralised story hook in rss20. --- diff --git a/gavinc/rss20 b/gavinc/rss20 index 4d7ac29..8419ef1 100644 --- a/gavinc/rss20 +++ b/gavinc/rss20 @@ -74,12 +74,15 @@ sub start { sub story { my ($pkg, $path, $filename, $story_ref, $title_ref, $body_ref) = @_; + # Ignore flavours other than ours + return unless $blosxom::flavour eq $flavour; + # Don't double-encode if someone else has already done it return unless $blosxom::encode_xml_entities; # Encode and reset encode_xml_entities flag $$title_ref = _escape_text( $$title_ref ); - $$body_ref = _escape_html( $$body_ref ); + $$body_ref = _escape_html( $$body_ref ); $blosxom::encode_xml_entities = 0; }