diff options
author | Zughy <63455151+Zughy@users.noreply.github.com> | 2021-01-10 19:10:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-10 20:10:12 +0100 |
commit | fcb3ed840a5e66e6d37b27effe30d8d723a7da59 (patch) | |
tree | f6818f8ccb8dcc89d9d239897d32e241c157416c /builtin | |
parent | 5fcc78a1feeffbc1a4fdd1cfffb49451694786d3 (diff) | |
download | minetest-fcb3ed840a5e66e6d37b27effe30d8d723a7da59.tar.gz minetest-fcb3ed840a5e66e6d37b27effe30d8d723a7da59.tar.bz2 minetest-fcb3ed840a5e66e6d37b27effe30d8d723a7da59.zip |
Sanitize server IP field in mainmenu (#10793)
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/mainmenu/common.lua | 2 |
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 |