len = strlen(type);
p = pattern;
while(1) {
- if (!strncmp(p, "no", 2) && !strncmp(p+2, type, len) &&
+ if (!strncmp(p, "no", 2) && !strncasecmp(p+2, type, len) &&
(p[len+2] == 0 || p[len+2] == ','))
return 0;
- if (strncmp(p, type, len) == 0 && (p[len] == 0 || p[len] == ','))
+ if (strncasecmp(p, type, len) == 0 && (p[len] == 0 || p[len] == ','))
return !no;
p = strchr(p,',');
if (!p)