View | Details | Raw Unified | Return to bug 44803
Collapse All | Expand All

(-)modules/proxy/mod_proxy_balancer.c (-12 / +9 lines)
Lines 51-70 Link Here
51
        return HTTP_BAD_REQUEST;
51
        return HTTP_BAD_REQUEST;
52
    }
52
    }
53
    /* now parse path/search args, according to rfc1738 */
53
    /* now parse path/search args, according to rfc1738 */
54
    /* N.B. if this isn't a true proxy request, then the URL _path_
54
    search = NULL;
55
     * has already been decoded.  True proxy requests have r->uri
56
     * == r->unparsed_uri, and no others have that property.
57
     */
58
    if (r->uri == r->unparsed_uri) {
59
        search = strchr(url, '?');
60
        if (search != NULL)
61
            *(search++) = '\0';
62
    }
63
    else
64
        search = r->args;
65
55
66
    /* process path */
56
    /* process path */
67
    path = ap_proxy_canonenc(r->pool, url, strlen(url), enc_path, 0, r->proxyreq);
57
    if (apr_table_get(r->notes, "proxy-nocanon")) {
58
        path = url;   /* this is the raw path */
59
    }
60
    else {
61
        path = ap_proxy_canonenc(r->pool, url, strlen(url), enc_path, 0,
62
                                 r->proxyreq);
63
        search = r->args;
64
    }
68
    if (path == NULL)
65
    if (path == NULL)
69
        return HTTP_BAD_REQUEST;
66
        return HTTP_BAD_REQUEST;
70
67

Return to bug 44803