From 2bb968c7ccb51bb21e3067b9069504977f83efc0 Mon Sep 17 00:00:00 2001 From: Patrick Canterino Date: Thu, 15 Oct 2026 14:53:56 +0200 Subject: [PATCH] During admin cleanup of expired files, consider an empty "time" value as an invalid file and remove it --- lib/functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.43.0