Fixed email address posting - and _ characters

This commit is contained in:
Michiel Broek 2003-08-14 18:28:18 +00:00
parent 6d4d734ff8
commit d68d0d67a0
2 changed files with 35 additions and 34 deletions

View File

@ -34,6 +34,7 @@ v0.37.5 12-Jul-2003 - 10-Aug-2003
set to one hour to support very long scans. set to one hour to support very long scans.
Changed logging during user login. Changed logging during user login.
Fixed bugs in QWK mail upload processing. Fixed bugs in QWK mail upload processing.
Allow - and _ in email names (GetstrU function).
mbsetup: mbsetup:
Added menu entry 1.5.21 for setting maximum allowed logins. Added menu entry 1.5.21 for setting maximum allowed logins.

View File

@ -170,7 +170,7 @@ void GetstrU(char *sStr, int iMaxlen)
putchar('\007'); putchar('\007');
} }
if (isalnum(ch) || (ch == '@') || (ch == '.')) { if (isalnum(ch) || (ch == '@') || (ch == '.') || (ch == '-') || (ch == '_')) {
if (iPos <= iMaxlen) { if (iPos <= iMaxlen) {
iPos++; iPos++;
sprintf(sStr, "%s%c", sStr, ch); sprintf(sStr, "%s%c", sStr, ch);