summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-06-24 20:47:15 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-06-24 20:47:15 -0400
commit17a09ef88ea7cea9e9b0e29728a4b9fbddc4c489 (patch)
treefa38af3f9457cf5974416af084ae6b0952642483 /IkiWiki
parent7fbbcc1615510b622e2d2947e07d9acbb56fbb1c (diff)
pagesources might not be populated
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/txt.pm2
1 files changed, 1 insertions, 1 deletions
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 {