Comments by RND.

This commit is contained in:
Auke Kok 2018-01-03 14:18:03 -08:00
parent 3835427e97
commit 97e44dce38

View File

@ -40,7 +40,7 @@ function fsc.show(name, formspec, context, callback)
context = {}
end
-- erase old context!
-- invalidate any old data from previous formspecs by overwriting it
local id = "fsc:" .. make_new_random_id()
_data[name] = {
id = id,
@ -71,7 +71,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
return
end
if data.name ~= name then
minetest.log("error", "fsc: possible hash collision or exploit (name mismatch)")
minetest.log("error", "fsc: internal error (name mismatch)")
minetest.close_formspec(name, formname)
_data[name] = nil
return