]> git.lizzy.rs Git - dragonfireclient.git/commitdiff
Sanitize server IP field in mainmenu (#10793)
authorZughy <63455151+Zughy@users.noreply.github.com>
Sun, 10 Jan 2021 19:10:12 +0000 (19:10 +0000)
committerGitHub <noreply@github.com>
Sun, 10 Jan 2021 19:10:12 +0000 (20:10 +0100)
builtin/mainmenu/common.lua

index 782d6973fb60468d952dcf5edb05c0c6934f7570..2bd8aa8a5d10ccb40c2c02b05fad9c48711f5c0a 100644 (file)
@@ -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