Skip to content

Commit

Permalink
Sanitize server IP field in mainmenu (#10793)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zughy committed Jan 10, 2021
1 parent 5fcc78a commit fcb3ed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/mainmenu/common.lua
Expand Up @@ -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
Expand Down

0 comments on commit fcb3ed8

Please sign in to comment.