From bc9bbdd39947aa9654800d7cf33fe903943b0bf1 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 24 Jan 2017 21:23:30 +0100 Subject: [PATCH] Escape creative search field --- mods/craftingpack/crafting/creative.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/craftingpack/crafting/creative.lua b/mods/craftingpack/crafting/creative.lua index d5980bc257..c4f750a9b9 100644 --- a/mods/craftingpack/crafting/creative.lua +++ b/mods/craftingpack/crafting/creative.lua @@ -289,7 +289,7 @@ crafting.set_creative_formspec = function(player, start_i, pagenum, show, page, if filter == nil then filter = "" end - formspec = formspec .. "field[5.3,1.3;4,0.75;suche;;"..filter.."]" + formspec = formspec .. "field[5.3,1.3;4,0.75;suche;;"..minetest.formspec_escape(filter).."]" formspec = formspec .. "field_close_on_enter[suche;false]" end if pagenum ~= nil then formspec = formspec .. "p"..tostring(pagenum) end