aboutsummaryrefslogtreecommitdiff
path: root/builtin/modstore.lua
diff options
context:
space:
mode:
authorNovatux <nathanael.courant@laposte.net>2013-08-14 20:21:39 +0200
committerKahrl <kahrl@gmx.net>2013-08-15 22:12:51 +0200
commit7921fe2cd1b284b35c28419fdf78873af456fded (patch)
tree8406671ea8106a6bef4ee384bf2a17f3dc384d15 /builtin/modstore.lua
parenta97c085e9e6f5e37c316aa5390f7cb05ad6bcacc (diff)
downloadhax-minetest-server-7921fe2cd1b284b35c28419fdf78873af456fded.tar.gz
hax-minetest-server-7921fe2cd1b284b35c28419fdf78873af456fded.zip
Fix formspec escaping, add escaping to info.txt for texture packs.
Diffstat (limited to 'builtin/modstore.lua')
-rw-r--r--builtin/modstore.lua4
1 files changed, 2 insertions, 2 deletions
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 .."]"