diff --git a/whm/gniza-whm/logs.cgi b/whm/gniza-whm/logs.cgi index 0fa0c54..d69cfb6 100755 --- a/whm/gniza-whm/logs.cgi +++ b/whm/gniza-whm/logs.cgi @@ -52,7 +52,7 @@ sub show_list { my @files; if (opendir my $dh, $log_dir) { while (my $entry = readdir $dh) { - next unless _valid_log_filename($entry); + next unless $entry =~ /^gniza-\d{8}-\d{6}\.log$/; my $path = "$log_dir/$entry"; next unless -f $path; my @stat = stat($path); @@ -61,7 +61,7 @@ sub show_list { name => $entry, size => $stat[7] // 0, mtime => $stat[9] // 0, - type => ($entry =~ /^cron-/) ? 'Cron' : _detect_log_type($path), + type => _detect_log_type($path), status => $status, }; }