From 34bbeab3143a59d7c566ab3292d4544f3d939d92 Mon Sep 17 00:00:00 2001 From: Scott Roeder Date: Tue, 21 Jul 2015 12:27:24 +0400 Subject: [PATCH] Added @ character to the list of valid username characters. --- shellinabox/launcher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shellinabox/launcher.c b/shellinabox/launcher.c index 6256d95..5348b6c 100644 --- a/shellinabox/launcher.c +++ b/shellinabox/launcher.c @@ -1019,7 +1019,7 @@ static pam_handle_t *internalLogin(struct Service *service, struct Utmp *utmp, if (!((ch >= '0' && ch <= '9') || (ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z') || - ch == '-' || ch == '_' || ch == '.')) { + ch == '-' || ch == '_' || ch == '.' || ch == '@')) { goto invalid_user_name; } }