From: Jeff Trawick Date: Fri, 13 Aug 2004 12:15:46 +0000 (+0000) Subject: apr_tolower() doesn't process the entire string X-Git-Tag: STRIKER_2_1_0_RC1~130 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac4dcde20ae391ecf9a8bb8b3aaa0fb72878f781;p=apache apr_tolower() doesn't process the entire string git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104645 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/proxy_http.c b/modules/proxy/proxy_http.c index b8ce262c3a..351c328f88 100644 --- a/modules/proxy/proxy_http.c +++ b/modules/proxy/proxy_http.c @@ -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)) {