From c816aa53744bb5877d61ef381f099e4f35e9ba01 Mon Sep 17 00:00:00 2001 From: ROllerozxa Date: Sun, 6 Aug 2023 14:15:49 +0200 Subject: [PATCH] Settings GUI: Fix path settings on Windows --- builtin/mainmenu/settings/components.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/mainmenu/settings/components.lua b/builtin/mainmenu/settings/components.lua index 3ff38c943..90d40ed96 100644 --- a/builtin/mainmenu/settings/components.lua +++ b/builtin/mainmenu/settings/components.lua @@ -199,7 +199,7 @@ function make.path(setting) self.resettable = core.settings:has(setting.name) local fs = ("field[0,0.3;%f,0.8;%s;%s;%s]"):format( - avail_w - 3, setting.name, get_label(setting), value) + avail_w - 3, setting.name, get_label(setting), core.formspec_escape(value)) fs = fs .. ("button[%f,0.3;1.5,0.8;%s;%s]"):format(avail_w - 3, "pick_" .. setting.name, fgettext("Browse")) fs = fs .. ("button[%f,0.3;1.5,0.8;%s;%s]"):format(avail_w - 1.5, "set_" .. setting.name, fgettext("Set"))