# HG changeset patch # User Kim Alvefur # Date 1572646303 -3600 # Node ID 76eb79d372ded5f8f25bc48a5a3046019bbdc41c # Parent 649acbfbf7fe925756b0ba79c9cc242383870342 mod_register_ibr: Enforce strict JID validation diff -r 649acbfbf7fe -r 76eb79d372de 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