Fixes for comma in bbs input lines

This commit is contained in:
Michiel Broek 2002-11-14 21:49:48 +00:00
parent 2c15bbd7ff
commit 476d410bb3
2 changed files with 127 additions and 118 deletions

View File

@ -3,8 +3,17 @@ $Id$
MBSEBBS History.
v0.35.06
v0.35.05 19-Oct-2002
general:
This may become release 0.36.00 (again).
mbsebbs:
Several user input functions don't allow comma's anymore.
v0.35.05 19-Oct-2002 - 13-Nov-2002.
upgrade:
Start mbsetup, go into global configuration, leave it and
@ -13,7 +22,6 @@ v0.35.05 19-Oct-2002
this setting now also affects echomail!
general:
This may become release 0.36.00
There is now a mberrors.h file that defines all errorcodes
returned by all programs.

View File

@ -122,7 +122,7 @@ void GetstrC(char *sStr, int iMaxlen)
putchar('\007');
}
if (ch > 31 && ch < 127) {
if ((ch > 31) && (ch < 127) && (ch != ',')) {
if (iPos <= iMaxlen) {
iPos++;
sprintf(sStr, "%s%c", sStr, ch);
@ -416,6 +416,7 @@ void Getname(char *sStr, int iMaxlen)
/*
* Get a Fidonet style username, always capitalize.
* Also used for Location Names.
*/
void GetnameNE(char *sStr, int iMaxlen)
{
@ -446,7 +447,7 @@ void GetnameNE(char *sStr, int iMaxlen)
putchar('\007');
}
if (ch > 31 && ch < 127) {
if ((ch > 31) && (ch < 127) && (ch != ',')) {
if (iPos < iMaxlen) {
iPos++;