From c86162085c9b3e7d479bddefd13c99c7a723497b Mon Sep 17 00:00:00 2001 From: fluxionary <25628292+fluxionary@users.noreply.github.com> Date: Fri, 9 Dec 2022 09:30:26 -0800 Subject: [PATCH] formspec-escape user input --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index cd03124..6ea6e1a 100644 --- a/init.lua +++ b/init.lua @@ -11,8 +11,8 @@ local function get_detector_form(default) return table.concat({ "formspec_version[4]", "size[8,3]", - "field[0.25,0.75;7.5,0.75;name;"..F(S("Online Detector"))..";"..default.."]", - "label[0.25,2.25;"..F(S("Detecting:")).." "..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:")).." "..F(default).."]" }) end