mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Sanitize server IP field in mainmenu (#10793)
This commit is contained in:
parent
5fcc78a1fe
commit
fcb3ed840a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue