formspec-escape user input

This commit is contained in:
fluxionary 2022-12-09 09:30:26 -08:00 committed by GitHub
parent 3912928a1a
commit c86162085c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11,8 +11,8 @@ local function get_detector_form(default)
return table.concat({ return table.concat({
"formspec_version[4]", "formspec_version[4]",
"size[8,3]", "size[8,3]",
"field[0.25,0.75;7.5,0.75;name;"..F(S("Online Detector"))..";"..default.."]", "field[0.25,0.75;7.5,0.75;name;"..F(S("Online Detector"))..";"..F(default).."]",
"label[0.25,2.25;"..F(S("Detecting:")).." "..default.."]" "label[0.25,2.25;"..F(S("Detecting:")).." "..F(default).."]"
}) })
end end