From 17a09ef88ea7cea9e9b0e29728a4b9fbddc4c489 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 24 Jun 2008 20:47:15 -0400 Subject: [PATCH] pagesources might not be populated --- IkiWiki/Plugin/txt.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.5