aboutsummaryrefslogtreecommitdiffstats
path: root/util/prosodyctl.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-11-01 22:53:14 +0100
committerKim Alvefur <zash@zash.se>2019-11-01 22:53:14 +0100
commit45936787cb44aaef09f568cc2d74c4de6113579b (patch)
tree24364ec24f73ad526e3ba16a0ed6274685a6b7d3 /util/prosodyctl.lua
parent8de5e91be6f1c6e5fb1009d4a90dfea73b17cb48 (diff)
downloadprosody-45936787cb44aaef09f568cc2d74c4de6113579b.tar.gz
prosody-45936787cb44aaef09f568cc2d74c4de6113579b.zip
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.
Diffstat (limited to 'util/prosodyctl.lua')
-rw-r--r--util/prosodyctl.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua
index 163658f3..586802d3 100644
--- a/util/prosodyctl.lua
+++ b/util/prosodyctl.lua
@@ -134,7 +134,7 @@ end
-- 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