Escape img name

This commit is contained in:
rubenwardy 2024-05-05 14:54:20 +01:00
parent 70b63dcb14
commit 92d89bcf2c
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ local function get_formspec(data)
hypertext = hypertext .. "\n\n" .. info.long_description.body
hypertext = hypertext:gsub("<img name=blank.png ",
"<img name=" .. core.hypertext_escape(defaulttexturedir) .. "blank.png ")
"<img name=\"" .. core.hypertext_escape(defaulttexturedir) .. "blank.png\" ")
table.insert_all(formspec, {
"hypertext[0.375,0;",