conf: use case-independent match for Filtertype parameter

This commit is contained in:
rofl0r 2023-10-13 19:54:26 +00:00
parent 2935519eb7
commit 1289d8afc8

View File

@ -1009,7 +1009,7 @@ static HANDLE_FUNC (handle_filtertype)
if (!type) return -1; if (!type) return -1;
for(i=0;i<sizeof(ftmap)/sizeof(ftmap[0]);++i) for(i=0;i<sizeof(ftmap)/sizeof(ftmap[0]);++i)
if(!strcmp(ftmap[i].type, type)) if(!strcasecmp(ftmap[i].type, type))
conf->filter_opts |= ftmap[i].flag; conf->filter_opts |= ftmap[i].flag;
safefree (type); safefree (type);