perl-modperl-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject cvs commit: modperl-2.0/src/modules/perl modperl_filter.c
Date Tue, 08 Apr 2003 07:41:51 GMT
stas        2003/04/08 00:41:51

  Modified:    src/modules/perl modperl_filter.c
  Log:
  use strcasecmp to compare strings ignoring case
  
  Revision  Changes    Path
  1.60      +4 -4      modperl-2.0/src/modules/perl/modperl_filter.c
  
  Index: modperl_filter.c
  ===================================================================
  RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_filter.c,v
  retrieving revision 1.59
  retrieving revision 1.60
  diff -u -r1.59 -r1.60
  --- modperl_filter.c	4 Apr 2003 00:08:36 -0000	1.59
  +++ modperl_filter.c	8 Apr 2003 07:41:51 -0000	1.60
  @@ -22,10 +22,10 @@
       const char *name = f->frec->name;
   
       /* frec->name is always lowercased */ 
  -    if (ap_strcasecmp_match(name, MP_FILTER_CONNECTION_INPUT_NAME)  ||
  -        ap_strcasecmp_match(name, MP_FILTER_CONNECTION_OUTPUT_NAME) ||
  -        ap_strcasecmp_match(name, MP_FILTER_REQUEST_INPUT_NAME)     ||
  -        ap_strcasecmp_match(name, MP_FILTER_REQUEST_OUTPUT_NAME) ) {
  +    if (!strcasecmp(name, MP_FILTER_CONNECTION_INPUT_NAME)  ||
  +        !strcasecmp(name, MP_FILTER_CONNECTION_OUTPUT_NAME) ||
  +        !strcasecmp(name, MP_FILTER_REQUEST_INPUT_NAME)     ||
  +        !strcasecmp(name, MP_FILTER_REQUEST_OUTPUT_NAME) ) {
           return ((modperl_filter_ctx_t *)f->ctx)->handler->name;
       }
       else {
  
  
  

Mime
View raw message