diff options
author | Zefram <zefram@fysh.org> | 2014-04-29 17:53:43 +0100 |
---|---|---|
committer | Zefram <zefram@fysh.org> | 2014-04-29 17:53:43 +0100 |
commit | 20cf4748864269a56c385137163c9a54139df40d (patch) | |
tree | f35e4cd77645177cb8dfadb025e276b2634fc5a7 /internal.lua | |
parent | 76a2337c59c36d35f7c10b884ec4a5e056b8f4a1 (diff) |
Fix formspec injection issues
Diffstat (limited to 'internal.lua')
-rw-r--r-- | internal.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal.lua b/internal.lua index 3696cfc..b352cdb 100644 --- a/internal.lua +++ b/internal.lua @@ -76,7 +76,7 @@ function unified_inventory.get_formspec(player, page) formspec = formspec.."label[8.2,0;Page:]" formspec = formspec.."label[9,0;"..page.." of "..pagemax.."]" formspec = formspec.."label[8.2,0.4;Filter:]" - formspec = formspec.."label[9,0.4;"..unified_inventory.activefilter[player_name].."]" + formspec = formspec.."label[9,0.4;"..minetest.formspec_escape(unified_inventory.activefilter[player_name]).."]" return formspec end |