]> git.p6c8.net - jirafeau/jirafeau.git/commitdiff
During admin cleanup of expired files, consider an empty "time" value as an invalid...
authorPatrick Canterino <patrick@patrick-canterino.de>
Thu, 15 Oct 2026 12:53:56 +0000 (14:53 +0200)
committerPatrick Canterino <patrick@patrick-canterino.de>
Thu, 15 Oct 2026 12:53:56 +0000 (14:53 +0200)
lib/functions.php

index e9dacf1f72349c92dd5d93ce07108f4ef939c0d6..c7ef2680cfa6784b89076798b1f382335599156e 100644 (file)
@@ -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);

patrick-canterino.de