Changeset 520


Ignore:
Timestamp:
11/10/08 13:23:53 (3 years ago)
Author:
OlivierRaginel
Message:

Item38: Fix regexp to filter files to be more strict, otherwise it might match configurationlog.txt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PageStatsPlugin/lib/TWiki/Plugins/PageStatsPlugin.pm

    r517 r520  
    7878    opendir DATADIR, $dd or die "Can't open DataDir: $!"; 
    7979    my @pagestats = (); 
    80     foreach my $l ( grep /log.*.txt/, readdir DATADIR ) { 
     80    foreach my $l ( grep /^log.*\.txt$/, readdir DATADIR ) { 
    8181        open( my $logfile, "< $dd/$l" ) or next; 
    8282        while( <$logfile> ) { 
Note: See TracChangeset for help on using the changeset viewer.