Sanitize server IP field in mainmenu (#10793)
This commit is contained in:
parent
5988b1889a
commit
3a686dc9e7
|
@ -87,7 +87,7 @@ function render_serverlist_row(spec, is_favorite)
|
||||||
if spec.name then
|
if spec.name then
|
||||||
text = text .. core.formspec_escape(spec.name:trim())
|
text = text .. core.formspec_escape(spec.name:trim())
|
||||||
elseif spec.address then
|
elseif spec.address then
|
||||||
text = text .. spec.address:trim()
|
text = text .. core.formspec_escape(spec.address:trim())
|
||||||
if spec.port then
|
if spec.port then
|
||||||
text = text .. ":" .. spec.port
|
text = text .. ":" .. spec.port
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue