]> granicus.if.org Git - apache/commitdiff
Fix an off-by-one error in an argument to apr_pstrcat.
authorVictor J. Orlikowski <orlikowski@apache.org>
Wed, 15 Aug 2001 21:45:51 +0000 (21:45 +0000)
committerVictor J. Orlikowski <orlikowski@apache.org>
Wed, 15 Aug 2001 21:45:51 +0000 (21:45 +0000)
Submitted by: barbee@veribox.net

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90176 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy.c

index 91ab34e42a23309906b8546ea7c23cb4105c2069..5b2cf410ad31443306c09eb5143421c64b855101 100644 (file)
@@ -181,7 +181,7 @@ static int proxy_trans(request_rec *r)
            
        if (len > 0) {
            r->filename = apr_pstrcat(r->pool, "proxy:", ent[i].real,
-                                 r->uri + len, NULL);
+                                 (r->uri + len - 1), NULL);
            r->handler = "proxy-server";
            r->proxyreq = PROXYREQ_REVERSE;
            return OK;