From 7921fe2cd1b284b35c28419fdf78873af456fded Mon Sep 17 00:00:00 2001 From: Novatux Date: Wed, 14 Aug 2013 20:21:39 +0200 Subject: Fix formspec escaping, add escaping to info.txt for texture packs. --- builtin/modstore.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'builtin/modstore.lua') diff --git a/builtin/modstore.lua b/builtin/modstore.lua index 6d761d47c..e94c174c2 100644 --- a/builtin/modstore.lua +++ b/builtin/modstore.lua @@ -233,12 +233,12 @@ function modstore.getmodlist(list) --title + author retval = retval .."label[2.75," .. screenshot_ypos .. ";" .. - fs_escape_string(details.title) .. " (" .. details.author .. ")]" + engine.formspec_escape(details.title) .. " (" .. details.author .. ")]" --description local descriptiony = screenshot_ypos + 0.5 retval = retval .. "textarea[3," .. descriptiony .. ";6.5,1.55;;" .. - fs_escape_string(details.description) .. ";]" + engine.formspec_escape(details.description) .. ";]" --rating local ratingy = screenshot_ypos + 0.6 retval = retval .."label[10.1," .. ratingy .. ";Rating: " .. details.rating .."]" -- cgit v1.2.3