# HG changeset patch # User Kim Alvefur # Date 1572645194 -3600 # Node ID 649acbfbf7fe925756b0ba79c9cc242383870342 # Parent 5611c939743a96beda7f40e7c73d310bef974d59 util.prosodyctl: Enforce strict JID validation on user creation This is where 64ddcbc9a328 should have started. By preventing creation of users with invalid JIDs, it will slowly become safer to enforce strict validation on everything. diff -r 5611c939743a -r 649acbfbf7fe util/prosodyctl.lua --- a/util/prosodyctl.lua Fri Nov 01 22:08:38 2019 +0100 +++ b/util/prosodyctl.lua Fri Nov 01 22:53:14 2019 +0100 @@ -134,7 +134,7 @@ -- Server control local function adduser(params) - local user, host, password = nodeprep(params.user), nameprep(params.host), params.password; + local user, host, password = nodeprep(params.user, true), nameprep(params.host), params.password; if not user then return false, "invalid-username"; elseif not host then