summaryrefslogtreecommitdiff
path: root/bags.lua
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2014-04-29 17:53:43 +0100
committerZefram <zefram@fysh.org>2014-04-29 17:53:43 +0100
commit20cf4748864269a56c385137163c9a54139df40d (patch)
treef35e4cd77645177cb8dfadb025e276b2634fc5a7 /bags.lua
parent76a2337c59c36d35f7c10b884ec4a5e056b8f4a1 (diff)
Fix formspec injection issues
Diffstat (limited to 'bags.lua')
-rw-r--r--bags.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/bags.lua b/bags.lua
index 34533a2..dce1b3b 100644
--- a/bags.lua
+++ b/bags.lua
@@ -13,10 +13,10 @@ unified_inventory.register_page("bags", {
formspec = formspec.."button[4,2;2,0.5;bag3;Bag 3]"
formspec = formspec.."button[6,2;2,0.5;bag4;Bag 4]"
formspec = formspec.."listcolors[#00000000;#00000000]"
- formspec = formspec.."list[detached:"..player_name.."_bags;bag1;0.5,1;1,1;]"
- formspec = formspec.."list[detached:"..player_name.."_bags;bag2;2.5,1;1,1;]"
- formspec = formspec.."list[detached:"..player_name.."_bags;bag3;4.5,1;1,1;]"
- formspec = formspec.."list[detached:"..player_name.."_bags;bag4;6.5,1;1,1;]"
+ formspec = formspec.."list[detached:"..minetest.formspec_escape(player_name).."_bags;bag1;0.5,1;1,1;]"
+ formspec = formspec.."list[detached:"..minetest.formspec_escape(player_name).."_bags;bag2;2.5,1;1,1;]"
+ formspec = formspec.."list[detached:"..minetest.formspec_escape(player_name).."_bags;bag3;4.5,1;1,1;]"
+ formspec = formspec.."list[detached:"..minetest.formspec_escape(player_name).."_bags;bag4;6.5,1;1,1;]"
return {formspec=formspec}
end,
})