mirror of
https://github.com/joe7575/techpack.git
synced 2025-01-12 15:57:33 +01:00
freeze exploit bug fix
This commit is contained in:
parent
827cc084fd
commit
f414f7d9ac
@ -30,6 +30,9 @@ function safer_lua:string(pttrn)
|
||||
self.pos = self.pos + 1
|
||||
local ch = self.line:sub(self.pos, self.pos)
|
||||
while not ch:match(pttrn) and self.pos < #self.line do
|
||||
if ch == "\\" then
|
||||
self.pos = self.pos + 1
|
||||
end
|
||||
self.pos = self.pos + 1
|
||||
ch = self.line:sub(self.pos, self.pos)
|
||||
end
|
||||
@ -86,6 +89,8 @@ local InvalidKeywords = {
|
||||
local InvalidChars = {
|
||||
[":"] = true,
|
||||
["{"] = true,
|
||||
["["] = true,
|
||||
["]"] = true,
|
||||
["}"] = true,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user