Merge pull request #2 from fluxionary/patch-1

formspec-escape user input
This commit is contained in:
AFCMS 2023-11-11 11:36:40 +01:00 committed by GitHub
commit ed565e7150
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