pagesources might not be populated

master
Joey Hess 2008-06-24 20:47:15 -04:00
parent 7fbbcc1615
commit 17a09ef88e
1 changed files with 1 additions and 1 deletions

View 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 {