aboutsummaryrefslogtreecommitdiff
path: root/builtin/mainmenu
diff options
context:
space:
mode:
authorZughy <63455151+Zughy@users.noreply.github.com>2021-01-10 19:10:12 +0000
committerGitHub <noreply@github.com>2021-01-10 20:10:12 +0100
commitfcb3ed840a5e66e6d37b27effe30d8d723a7da59 (patch)
treef6818f8ccb8dcc89d9d239897d32e241c157416c /builtin/mainmenu
parent5fcc78a1feeffbc1a4fdd1cfffb49451694786d3 (diff)
downloadminetest-fcb3ed840a5e66e6d37b27effe30d8d723a7da59.tar.gz
minetest-fcb3ed840a5e66e6d37b27effe30d8d723a7da59.tar.bz2
minetest-fcb3ed840a5e66e6d37b27effe30d8d723a7da59.zip
Sanitize server IP field in mainmenu (#10793)
Diffstat (limited to 'builtin/mainmenu')
-rw-r--r--builtin/mainmenu/common.lua2
1 files changed, 1 insertions, 1 deletions
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