mjc 96/09/24 05:11:22
Modified: src mod_access.c Log: Submitted-by: Paul Sutton Compare domain names on allow and deny lines case-insensitively. Revision Changes Path 1.5 +2 -2 apache/src/mod_access.c Index: mod_access.c =================================================================== RCS file: /export/home/cvs/apache/src/mod_access.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C3 -r1.4 -r1.5 *** mod_access.c 1996/08/20 11:50:54 1.4 --- mod_access.c 1996/09/24 12:11:21 1.5 *************** *** 50,56 **** * */ ! /* $Id: mod_access.c,v 1.4 1996/08/20 11:50:54 paul Exp $ */ /* * Security options etc. --- 50,56 ---- * */ ! /* $Id: mod_access.c,v 1.5 1996/09/24 12:11:21 mjc Exp $ */ /* * Security options etc. *************** *** 143,149 **** int wl=strlen(what); if((wl-dl) >= 0) { ! if (strcmp(domain,&what[wl-dl]) != 0) return 0; /* Make sure we matched an *entire* subdomain --- if the user * said 'allow from good.com', we don't want people from nogood.com --- 143,149 ---- int wl=strlen(what); if((wl-dl) >= 0) { ! if (strcasecmp(domain,&what[wl-dl]) != 0) return 0; /* Make sure we matched an *entire* subdomain --- if the user * said 'allow from good.com', we don't want people from nogood.com