]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
pagesources might not be populated
authorJoey Hess <joey@kodama.kitenet.net>
Wed, 25 Jun 2008 00:47:15 +0000 (20:47 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Wed, 25 Jun 2008 00:47:15 +0000 (20:47 -0400)
IkiWiki/Plugin/txt.pm

index 22c9ac903f93c2797175bb14916a385d7ecd28e5..3aad5fa07a6aa3a349fab19ba7b182fe667f60ca 100644 (file)
@@ -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 {