From c4d299c2f1f0ce221b68d37bf85c375a56835d47 Mon Sep 17 00:00:00 2001 From: in2 Date: Tue, 6 Apr 2004 05:56:41 +0000 Subject: use case insensitive string functions for banemail git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1706 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/user.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mbbsd') 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); -- cgit v1.2.3