From 80f4c6db549164199b8e9a5df7f919b3758a6796 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Tue, 16 Oct 2007 14:29:28 +0000 Subject: [PATCH] File download checks from http and ftp are now case insensitive --- ChangeLog | 4 ++++ mbutils/dlcount.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d171c702..cbdfdae1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -20,6 +20,10 @@ v0.91.13 12-Oct-2007 Fixed filefind search filenames case insensitive. Fixed filefind search in description. + mball: + File download checks from http and ftp are now case + insensitive. + mbsetup: Blocked selection of FTN and Usenet moderated message areas. Changed the F-PROT scanner name into fpscan. diff --git a/mbutils/dlcount.c b/mbutils/dlcount.c index 5885908b..c264b3c3 100644 --- a/mbutils/dlcount.c +++ b/mbutils/dlcount.c @@ -249,7 +249,8 @@ void count_download(char *filename, time_t filedate, off_t filesize, char *dltyp if ((fdb_area = mbsedb_OpenFDB(i, 30))) { while (fread(&frec, fdbhdr.recsize, 1, fdb_area->fp) == 1) { - if (((strcmp(frec.Name, temp) == 0) || (strcmp(frec.LName, temp) == 0)) && (frec.Size == filesize)) { + if (((strcasecmp(frec.Name, temp) == 0) || (strcasecmp(frec.LName, temp) == 0)) && + (frec.Size == filesize)) { Syslog('+', "%s download %s from area %d", dltype, temp, i); frec.LastDL = filedate; frec.TimesDL++;