From fcb3ed840a5e66e6d37b27effe30d8d723a7da59 Mon Sep 17 00:00:00 2001 From: Zughy <63455151+Zughy@users.noreply.github.com> Date: Sun, 10 Jan 2021 19:10:12 +0000 Subject: Sanitize server IP field in mainmenu (#10793) --- builtin/mainmenu/common.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'builtin') diff --git a/builtin/mainmenu/common.lua b/builtin/mainmenu/common.lua index 782d6973f..2bd8aa8a5 100644 --- a/builtin/mainmenu/common.lua +++ b/builtin/mainmenu/common.lua @@ -87,7 +87,7 @@ function render_serverlist_row(spec, is_favorite) if spec.name then text = text .. core.formspec_escape(spec.name:trim()) elseif spec.address then - text = text .. spec.address:trim() + text = text .. core.formspec_escape(spec.address:trim()) if spec.port then text = text .. ":" .. spec.port end -- cgit v1.2.3