diff options
author | orwell96 <orwell@bleipb.de> | 2019-08-29 22:30:43 +0200 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2019-08-29 22:30:43 +0200 |
commit | 27f85f2e225e038789036fac4407d97aacb2189b (patch) | |
tree | 300e60bc0e5ccec77ec4fba70d099bfeca58bc6b | |
parent | 986c8fcf92925f8f36ea8957270eeff829b7abf1 (diff) | |
download | advtrains-27f85f2e225e038789036fac4407d97aacb2189b.tar.gz advtrains-27f85f2e225e038789036fac4407d97aacb2189b.tar.bz2 advtrains-27f85f2e225e038789036fac4407d97aacb2189b.zip |
Secure inputs to scheduler so that they don't get recognised when executing the schedule
-rw-r--r-- | advtrains_line_automation/scheduler.lua | 3 |
1 files changed, 3 insertions, 0 deletions
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 |