Skip to content

Commit fcb3ed8

Browse files
authoredJan 10, 2021
Sanitize server IP field in mainmenu (#10793)
1 parent 5fcc78a commit fcb3ed8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎builtin/mainmenu/common.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function render_serverlist_row(spec, is_favorite)
8787
if spec.name then
8888
text = text .. core.formspec_escape(spec.name:trim())
8989
elseif spec.address then
90-
text = text .. spec.address:trim()
90+
text = text .. core.formspec_escape(spec.address:trim())
9191
if spec.port then
9292
text = text .. ":" .. spec.port
9393
end

0 commit comments

Comments
 (0)
Please sign in to comment.