From: Daniel Andersson Date: Fri, 19 Apr 2013 19:25:26 +0000 (+0200) Subject: Fix doubly applied basepaths to lockfiles. X-Git-Tag: 1.7.9~25^2~113^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1134497129597b71ff62b4fb223b2088dc7b0510;p=tt-rss.git Fix doubly applied basepaths to lockfiles. --- diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 6ccf520a..2be791cb 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -1159,7 +1159,7 @@ if ($files) { foreach ($files as $file) { - if (!file_is_locked($file) && time() - filemtime($file) > 86400*2) { + if (!file_is_locked(basename($file)) && time() - filemtime($file) > 86400*2) { unlink($file); ++$num_deleted; }