From a87492d53c5691095337930bccafb1f5964206e5 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 11 Sep 2020 18:34:06 +0200 Subject: mod_server_contact_info: Apply JID normalization --- plugins/mod_server_contact_info.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_server_contact_info.lua b/plugins/mod_server_contact_info.lua index 9c916ebc..df2f0842 100644 --- a/plugins/mod_server_contact_info.lua +++ b/plugins/mod_server_contact_info.lua @@ -7,6 +7,7 @@ -- local array = require "util.array"; +local jid = require "util.jid"; -- Source: http://xmpp.org/registrar/formtypes.html#http:--jabber.org-network-serverinfo local form_layout = require "util.dataforms".new({ @@ -24,7 +25,7 @@ local form_layout = require "util.dataforms".new({ local admins = module:get_option_inherited_set("admins", {}); local contact_config = module:get_option("contact_info", { - admin = array.collect( admins / function(admin) return "xmpp:" .. admin; end); + admin = array.collect( admins / jid.prep / function(admin) return "xmpp:" .. admin; end); }); module:add_extension(form_layout:form(contact_config, "result")); -- cgit v1.2.3