From 20cf4748864269a56c385137163c9a54139df40d Mon Sep 17 00:00:00 2001 From: Zefram Date: Tue, 29 Apr 2014 17:53:43 +0100 Subject: Fix formspec injection issues --- internal.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal.lua') 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 -- cgit v1.2.3