Sanitize server IP field in mainmenu (#10793)

This commit is contained in:
Zughy 2021-01-10 19:10:12 +00:00 committed by GitHub
parent 5fcc78a1fe
commit fcb3ed840a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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