fix stat to use unmunged filename

master
Joey Hess 2010-04-20 14:23:48 -04:00
parent 1f56dead00
commit 59bb1f1db3
1 changed files with 1 additions and 1 deletions

View File

@ -653,7 +653,7 @@ sub comments_pending () {
elsif (! -l $_ && ! -d _) { elsif (! -l $_ && ! -d _) {
my ($f) = $file =~ /$config{wiki_file_regexp}/; # untaint my ($f) = $file =~ /$config{wiki_file_regexp}/; # untaint
if (defined $f && $f =~ /\Q._comment\E$/) { if (defined $f && $f =~ /\Q._comment\E$/) {
my $ctime=(stat($f))[10]; my $ctime=(stat($_))[10];
push @ret, [$f, $ctime]; push @ret, [$f, $ctime];
} }
} }