Remove insecure environment
It did not delete the empty folder anyway.
This commit is contained in:
10
colddb.lua
10
colddb.lua
@ -1,7 +1,5 @@
|
||||
colddb = {}
|
||||
|
||||
local ie = ...
|
||||
|
||||
local function createDir(directory)
|
||||
return minetest.mkdir(directory)
|
||||
end
|
||||
@ -98,13 +96,7 @@ function colddb.remove_tag(db,name)
|
||||
local wc = delete_path:len()
|
||||
delete_path = delete_path:sub(0,wc-1)
|
||||
db.tags[name] = nil
|
||||
local err,msg = os.remove(delete_path)
|
||||
if err == nil and ie then
|
||||
local err,msg = ie.os.remove(delete_path)
|
||||
if err == nil and ie then
|
||||
assert(ie, "Please add colddb to secure.trusted_mods in the settings")
|
||||
end
|
||||
end
|
||||
os.remove(delete_path)
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user