aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-11-01 23:11:43 +0100
committerKim Alvefur <zash@zash.se>2019-11-01 23:11:43 +0100
commit57273eb1488cebf258176e16c43b4ced4c9f6469 (patch)
treee95f91258f5ab93c43f6f32ac13d12e1f1e7850b
parentf700edb4f0a23ca0327629936da4a25ac034a550 (diff)
downloadprosody-57273eb1488cebf258176e16c43b4ced4c9f6469.tar.gz
prosody-57273eb1488cebf258176e16c43b4ced4c9f6469.zip
mod_register_ibr: Enforce strict JID validation
-rw-r--r--plugins/mod_register_ibr.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_register_ibr.lua b/plugins/mod_register_ibr.lua
index 32e6f710..6de9bc33 100644
--- a/plugins/mod_register_ibr.lua
+++ b/plugins/mod_register_ibr.lua
@@ -155,7 +155,7 @@ module:hook("stanza/iq/jabber:iq:register:query", function(event)
return true;
end
- local username, password = nodeprep(data.username), data.password;
+ local username, password = nodeprep(data.username, true), data.password;
data.username, data.password = nil, nil;
local host = module.host;
if not username or username == "" then