diff options
author | Kim Alvefur <zash@zash.se> | 2020-09-11 18:34:06 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-09-11 18:34:06 +0200 |
commit | a87492d53c5691095337930bccafb1f5964206e5 (patch) | |
tree | 086d4889f1fedc5f27f3cfb2cc1b1cde622e4d37 /plugins/mod_server_contact_info.lua | |
parent | a7fef46789354adb085f15acce5d3e1d3637e4dd (diff) | |
download | prosody-a87492d53c5691095337930bccafb1f5964206e5.tar.gz prosody-a87492d53c5691095337930bccafb1f5964206e5.zip |
mod_server_contact_info: Apply JID normalization
Diffstat (limited to 'plugins/mod_server_contact_info.lua')
-rw-r--r-- | plugins/mod_server_contact_info.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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")); |