Escape package description in content tab

This commit is contained in:
ROllerozxa 2023-09-22 21:25:58 +02:00 committed by GitHub
parent d57c936b08
commit c247761213
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -86,7 +86,7 @@ local function get_formspec(tabview, name, tabdata)
local info = core.get_content_info(selected_pkg.path) local info = core.get_content_info(selected_pkg.path)
local desc = fgettext("No package description available") local desc = fgettext("No package description available")
if info.description and info.description:trim() ~= "" then if info.description and info.description:trim() ~= "" then
desc = info.description desc = core.formspec_escape(info.description)
end end
local title_and_name local title_and_name