projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fbbcc1
)
pagesources might not be populated
author
Joey Hess
<joey@kodama.kitenet.net>
Wed, 25 Jun 2008 00:47:15 +0000
(20:47 -0400)
committer
Joey Hess
<joey@kodama.kitenet.net>
Wed, 25 Jun 2008 00:47:15 +0000
(20:47 -0400)
IkiWiki/Plugin/txt.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/txt.pm
b/IkiWiki/Plugin/txt.pm
index 22c9ac903f93c2797175bb14916a385d7ecd28e5..3aad5fa07a6aa3a349fab19ba7b182fe667f60ca 100644
(file)
--- 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 {