From bcf82ed70d62aeb42b0f6d70aa5ef54ac2b046af Mon Sep 17 00:00:00 2001 From: orwell96 Date: Thu, 2 Feb 2017 22:26:43 +0100 Subject: Add documentation and pack for release --- advtrains/advtrains_luaautomation/environment.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'advtrains/advtrains_luaautomation/environment.lua') diff --git a/advtrains/advtrains_luaautomation/environment.lua b/advtrains/advtrains_luaautomation/environment.lua index c7b801c..8dfdd39 100644 --- a/advtrains/advtrains_luaautomation/environment.lua +++ b/advtrains/advtrains_luaautomation/environment.lua @@ -97,11 +97,12 @@ end -- string.find with a pattern can be used to DoS the server. -- Therefore, limit string.find to patternless matching. +-- Note: Disabled security since there are enough security leaks and this would be unneccessary anyway to DoS the server local function safe_string_find(...) - if (select(4, ...)) ~= true then - debug.sethook() -- Clear hook - error("string.find: 'plain' (fourth parameter) must always be true for security reasons.") - end + --if (select(4, ...)) ~= true then + -- debug.sethook() -- Clear hook + -- error("string.find: 'plain' (fourth parameter) must always be true for security reasons.") + --end return string.find(...) end -- cgit v1.2.3