mirror of https://github.com/minetest/minetest.git
Escape img name
This commit is contained in:
parent
70b63dcb14
commit
92d89bcf2c
|
@ -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;",
|
||||
|
|
Loading…
Reference in New Issue