2 potential vulnerability fixes

This commit is contained in:
2026-02-23 23:26:21 -06:00
parent a6d2f6dca7
commit 8798a2f4fe
4 changed files with 26 additions and 23 deletions

View File

@@ -50,10 +50,8 @@ local function readonly(tbl)
__metatable = false
})
end
--local origLoad = load
local origLoad = load
kernel._U = readonly(kernel._G)
kernel.allowGlobalOverwrites = true
kernel._U._G = kernel._U
--kernel._U.load = function(a,b,c,d) return origLoad(a,b,c,d or kernel._U) end
kernel.allowGlobalOverwrites = false
kernel._U.load = function(a, b, c, d) return origLoad(a, b, c, d or kernel._U) end