commit - a072180c9262f8a1c6bba6b8f0613bccc2863f48
commit + 85abfd84beee0a5fc6725624b0bd0260c7b2d856
blob - 9e1abdd59e8b0349b535b9b1299989f994a3827c
blob + 74d8b9d116b3bb71de2388a0c71838f0c86f4e29
--- src/ngircd/irc-login.c
+++ src/ngircd/irc-login.c
Client_ID(Client),
Req->command);
- /* User name: only alphanumeric characters are allowed! */
+ /* User name: only alphanumeric characters and limited
+ punctuation is allowed.*/
ptr = Req->argv[0];
while (*ptr) {
if ((*ptr < '0' || *ptr > '9') &&
(*ptr < 'A' || *ptr > 'Z') &&
- (*ptr < 'a' || *ptr > 'z')) {
+ (*ptr < 'a' || *ptr > 'z') &&
+ (*ptr != '+') && (*ptr != '-') &&
+ (*ptr != '.') && (*ptr != '_')) {
Conn_Close(Client_Conn(Client), NULL,
"Invalid user name", true);
return DISCONNECTED;