From: Patrick Canterino Date: Thu, 15 Oct 2026 12:53:56 +0000 (+0200) Subject: During admin cleanup of expired files, consider an empty "time" value as an invalid... X-Git-Tag: 4.8.0~5^2~1 X-Git-Url: https://git.p6c8.net/jirafeau/jirafeau.git/commitdiff_plain/2bb968c7ccb51bb21e3067b9069504977f83efc0?ds=inline During admin cleanup of expired files, consider an empty "time" value as an invalid file and remove it --- diff --git a/lib/functions.php b/lib/functions.php index e9dacf1..c7ef268 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -862,7 +862,8 @@ function jirafeau_admin_clean() continue; } $p = s2p($l['hash']); - if ($l['time'] > 0 && $l['time'] < time() || // expired + if (empty($l['time']) || // invalid + $l['time'] > 0 && $l['time'] < time() || // expired !file_exists(VAR_FILES . $p . $l['hash']) || // invalid !file_exists(VAR_FILES . $p . $l['hash'] . '_count')) { // invalid jirafeau_delete_link($node);