Skip to content

Commit

Permalink
Item9068: Unaint stale cache file names prior to unlink.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@7562 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GeorgeClark authored and GeorgeClark committed May 26, 2010
1 parent 9988e3f commit f2b860f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/lib/Foswiki/Request/Cache.pm
Expand Up @@ -202,6 +202,7 @@ sub cleanup {
my @stat = stat($f);
my $mtime = $stat[9];
if ( $mtime < $deathtime ) {
$f = Foswiki::Sandbox::untaintUnchecked( $f );
unlink($f);
}
}
Expand Down

0 comments on commit f2b860f

Please sign in to comment.