mod_register_json: correct invalid characters into usernames' log message.
--- a/mod_register_json/mod_register_json.lua Sat Mar 02 11:47:20 2013 +0100
+++ b/mod_register_json/mod_register_json.lua Mon Mar 04 14:27:04 2013 +0100
@@ -85,7 +85,7 @@
-- And nodeprep the username
local username = nodeprep(req_body["username"])
if not username then
- module:log("debug", "%s supplied an username containing invalid characters: %s", user, username)
+ module:log("debug", "An username containing invalid characters was supplied: %s", user)
return http_response(event, 406, "Supplied username contains invalid characters, see RFC 6122.")
else
if not usermanager.user_exists(username, req_body["host"]) then