From 27f85f2e225e038789036fac4407d97aacb2189b Mon Sep 17 00:00:00 2001 From: orwell96 Date: Thu, 29 Aug 2019 22:30:43 +0200 Subject: Secure inputs to scheduler so that they don't get recognised when executing the schedule --- advtrains_line_automation/scheduler.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/advtrains_line_automation/scheduler.lua b/advtrains_line_automation/scheduler.lua index da639df..a2b7e7b 100644 --- a/advtrains_line_automation/scheduler.lua +++ b/advtrains_line_automation/scheduler.lua @@ -69,6 +69,9 @@ end function sched.enqueue(rwtime, handler, evtdata, unitid, unitlim) local qtime = ln.rwt.to_secs(rwtime) + assert(type(handler)=="string") + assert(type(unitid)=="string") + assert(type(unitlim)=="number") local cnt=1 local ucn, elem -- cgit v1.2.3