diff options
author | orwell96 <mono96.mml@gmail.com> | 2017-02-02 22:26:43 +0100 |
---|---|---|
committer | orwell96 <mono96.mml@gmail.com> | 2017-02-02 22:26:43 +0100 |
commit | bcf82ed70d62aeb42b0f6d70aa5ef54ac2b046af (patch) | |
tree | a382675b03e1cef44cb53c4450caf7ea8b8c03d7 /advtrains/advtrains_luaautomation/environment.lua | |
parent | 948482a99e4aae4d51ff97879432140645959f46 (diff) | |
download | advtrains-bcf82ed70d62aeb42b0f6d70aa5ef54ac2b046af.tar.gz advtrains-bcf82ed70d62aeb42b0f6d70aa5ef54ac2b046af.tar.bz2 advtrains-bcf82ed70d62aeb42b0f6d70aa5ef54ac2b046af.zip |
Add documentation and pack for release
Diffstat (limited to 'advtrains/advtrains_luaautomation/environment.lua')
-rw-r--r-- | advtrains/advtrains_luaautomation/environment.lua | 9 |
1 files changed, 5 insertions, 4 deletions
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 |