Software /
code /
prosody-modules
Changeset
919:7d72fb45b1e4
mod_register_json: correct invalid characters into usernames' log message.
author | Marco Cirillo <maranda@lightwitch.org> |
---|---|
date | Mon, 04 Mar 2013 14:27:04 +0100 |
parents | 918:dec71c31fb78 |
children | 920:f183de41b7c6 |
files | mod_register_json/mod_register_json.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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