X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/7fbbcc1615510b622e2d2947e07d9acbb56fbb1c..d8b49840ddfe689c8bbb1c67c5f3647aedf6bc80:/IkiWiki/Plugin/txt.pm?ds=inline diff --git a/IkiWiki/Plugin/txt.pm b/IkiWiki/Plugin/txt.pm index 22c9ac903..3aad5fa07 100644 --- a/IkiWiki/Plugin/txt.pm +++ b/IkiWiki/Plugin/txt.pm @@ -29,7 +29,7 @@ sub filter (@) { my %params = @_; my $content = $params{content}; - if ($pagesources{$params{page}} =~ /\.txt$/) { + if (defined $pagesources{$params{page}} && $pagesources{$params{page}} =~ /\.txt$/) { encode_entities($content); if ($findurl) { my $finder = URI::Find->new(sub {