From 85470f11ca579bda756859fa518b77b8b341eddf Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 25 Feb 2021 10:04:04 +0100 Subject: [eventlog/main] Fix possible overflow in query This would break on clock skew where timestamps in the DB lie in the future. --- modules-available/eventlog/hooks/cron.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules-available/eventlog') diff --git a/modules-available/eventlog/hooks/cron.inc.php b/modules-available/eventlog/hooks/cron.inc.php index 027acf87..180bafd3 100644 --- a/modules-available/eventlog/hooks/cron.inc.php +++ b/modules-available/eventlog/hooks/cron.inc.php @@ -1,5 +1,5 @@ 86400 * 190"); -} \ No newline at end of file + Database::exec("DELETE FROM eventlog WHERE (UNIX_TIMESTAMP() - 86400 * 190) > dateline"); +} -- cgit v1.2.3-55-g7522