aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/comments.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-04-20 14:23:48 -0400
committerJoey Hess <joey@kitenet.net>2010-04-20 14:23:48 -0400
commit59bb1f1db37d8b8170e5dd8e5a857df7742bffb9 (patch)
treea66b106556e127b7dcb031bd13b7aab77f822092 /IkiWiki/Plugin/comments.pm
parent1f56dead00ee1188d9ed9650b9b2483b69c4d525 (diff)
downloadikiwiki-59bb1f1db37d8b8170e5dd8e5a857df7742bffb9.tar
ikiwiki-59bb1f1db37d8b8170e5dd8e5a857df7742bffb9.tar.gz
fix stat to use unmunged filename
Diffstat (limited to 'IkiWiki/Plugin/comments.pm')
-rw-r--r--IkiWiki/Plugin/comments.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm
index 03ca19c98..ccc9e1068 100644
--- a/IkiWiki/Plugin/comments.pm
+++ b/IkiWiki/Plugin/comments.pm
@@ -653,7 +653,7 @@ sub comments_pending () {
elsif (! -l $_ && ! -d _) {
my ($f) = $file =~ /$config{wiki_file_regexp}/; # untaint
if (defined $f && $f =~ /\Q._comment\E$/) {
- my $ctime=(stat($f))[10];
+ my $ctime=(stat($_))[10];
push @ret, [$f, $ctime];
}
}