httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: httpd-2.0/modules/proxy proxy_http.c
Date Fri, 13 Aug 2004 12:15:46 GMT
trawick     2004/08/13 05:15:46

  Modified:    modules/proxy proxy_http.c
  Log:
  apr_tolower() doesn't process the entire string
  
  Revision  Changes    Path
  1.194     +6 -1      httpd-2.0/modules/proxy/proxy_http.c
  
  Index: proxy_http.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/proxy/proxy_http.c,v
  retrieving revision 1.193
  retrieving revision 1.194
  diff -u -r1.193 -r1.194
  --- proxy_http.c	11 Aug 2004 23:09:17 -0000	1.193
  +++ proxy_http.c	13 Aug 2004 12:15:46 -0000	1.194
  @@ -1115,6 +1115,7 @@
       int status;
       char server_portstr[32];
       char *scheme;
  +    char *ch;
       const char *proxy_function;
       const char *u;
       proxy_conn_rec *backend = NULL;
  @@ -1145,7 +1146,11 @@
           return HTTP_BAD_REQUEST;
       scheme = apr_pstrndup(c->pool, url, u - url);
       /* scheme is lowercase */
  -    apr_tolower(scheme);
  +    ch = scheme;
  +    while (*ch) {
  +        *ch = apr_tolower(*ch);
  +        ++ch;
  +    }
       /* is it for us? */
       if (strcmp(scheme, "https") == 0) {
           if (!ap_proxy_ssl_enable(NULL)) {
  
  
  

Mime
View raw message