luci-base: use correct regex for time validation
authorDaniel Nilsson <daniel.nilsson94@outlook.com>
Sat, 2 Mar 2024 10:35:04 +0000 (11:35 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 13 Mar 2024 08:18:09 +0000 (09:18 +0100)
commitcd7e519642ecf37d1f20cf4707b1c1f80c89cabf
treeb0902f57cdc8d29d68f39e32027fa2552807e115
parent397b1b22b4c89c13ea2871e020e9d7006e34179f
luci-base: use correct regex for time validation

Before this change, values further in time than 23:59:59 was allowed, such as 24:00:00 and 23:60:00. Leap seconds is accounted for so 60 is allowed in the seconds parameter.

Signed-off-by: Daniel Nilsson <daniel.nilsson94@outlook.com>
(cherry picked from commit c68ec2f910007c77874816fc0b829df78ca47aa0)
modules/luci-base/htdocs/luci-static/resources/validation.js