1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Fix formspec escaping, add escaping to info.txt for texture packs.

This commit is contained in:
Novatux 2013-08-14 20:21:39 +02:00 committed by Kahrl
parent a97c085e9e
commit 7921fe2cd1
5 changed files with 45 additions and 90 deletions

View file

@ -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 .."]"