]> granicus.if.org Git - apache/commitdiff
apr_tolower() doesn't process the entire string
authorJeff Trawick <trawick@apache.org>
Fri, 13 Aug 2004 12:15:46 +0000 (12:15 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 13 Aug 2004 12:15:46 +0000 (12:15 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104645 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_http.c

index b8ce262c3a39f07b1247b631e6c24b119e76b955..351c328f8831fc4a86d5c4e8d003d4e53bb70fbe 100644 (file)
@@ -1115,6 +1115,7 @@ int ap_proxy_http_handler(request_rec *r, proxy_worker *worker,
     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 @@ int ap_proxy_http_handler(request_rec *r, proxy_worker *worker,
         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)) {