mod_register_ibr: Enforce strict JID validation
authorKim Alvefur <zash@zash.se>
Fri, 01 Nov 2019 23:11:43 +0100
changeset 10372 76eb79d372de
parent 10371 649acbfbf7fe
child 10373 9d20fca6a485
mod_register_ibr: Enforce strict JID validation
plugins/mod_register_ibr.lua
--- a/plugins/mod_register_ibr.lua	Fri Nov 01 22:53:14 2019 +0100
+++ b/plugins/mod_register_ibr.lua	Fri Nov 01 23:11:43 2019 +0100
@@ -155,7 +155,7 @@
 		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