Fix formspec injection issues

This commit is contained in:
Zefram
2014-04-29 17:53:43 +01:00
parent 76a2337c59
commit 20cf474886
3 changed files with 8 additions and 8 deletions

View File

@ -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