Changeset

10368:76eb79d372de

mod_register_ibr: Enforce strict JID validation
author Kim Alvefur <zash@zash.se>
date Fri, 01 Nov 2019 23:11:43 +0100
parents 10367:649acbfbf7fe
children 10369:9d20fca6a485
files plugins/mod_register_ibr.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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