summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-06 13:56:41 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-06 13:56:41 +0800
commitc4d299c2f1f0ce221b68d37bf85c375a56835d47 (patch)
treedf49c702280314ed476817daeafa616d084acdd1
parentdf2500c2e262db41b99df32a68d50258516f0871 (diff)
downloadpttbbs-c4d299c2f1f0ce221b68d37bf85c375a56835d47.tar
pttbbs-c4d299c2f1f0ce221b68d37bf85c375a56835d47.tar.gz
pttbbs-c4d299c2f1f0ce221b68d37bf85c375a56835d47.tar.bz2
pttbbs-c4d299c2f1f0ce221b68d37bf85c375a56835d47.tar.lz
pttbbs-c4d299c2f1f0ce221b68d37bf85c375a56835d47.tar.xz
pttbbs-c4d299c2f1f0ce221b68d37bf85c375a56835d47.tar.zst
pttbbs-c4d299c2f1f0ce221b68d37bf85c375a56835d47.zip
use case insensitive string functions for banemail
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1706 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/user.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index 71c9fb9e..f6fad13c 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -928,11 +928,11 @@ isvalidemail(char *email)
if (buf[0] == '#')
continue;
buf[strlen(buf) - 1] = 0;
- if (buf[0] == 'A' && strcmp(&buf[1], email) == 0)
+ if (buf[0] == 'A' && strcasecmp(&buf[1], email) == 0)
return 0;
- if (buf[0] == 'P' && strstr(email, &buf[1]))
+ if (buf[0] == 'P' && strcasestr(email, &buf[1]))
return 0;
- if (buf[0] == 'S' && strcmp(strstr(email, "@") + 1, &buf[1]) == 0)
+ if (buf[0] == 'S' && strcasecmp(strstr(email, "@") + 1, &buf[1]) == 0)
return 0;
}
fclose(fp);