From: Joey Hess Date: Tue, 20 Apr 2010 18:23:48 +0000 (-0400) Subject: fix stat to use unmunged filename X-Git-Tag: 3.20100427~93^2~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=59bb1f1db37d8b8170e5dd8e5a857df7742bffb9;p=ikiwiki.git fix stat to use unmunged filename --- 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]; } }