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

(-)modules/proxy/proxy_util.c (+10 lines)
Lines 1117-1122 Link Here
1117
        }
1117
        }
1118
        else {
1118
        else {
1119
            l2 = strlen(real);
1119
            l2 = strlen(real);
1120
            if (real[0] == '/') {
1121
                const char *part = strstr(url, "://");
1122
                if (part) {
1123
                    part = strstr(part+3, "/");
1124
                    if (part) {
1125
                        url = part;
1126
                        l1 = strlen(url);
1127
                    }
1128
                }
1129
            }
1120
            if (l1 >= l2 && strncasecmp(real, url, l2) == 0) {
1130
            if (l1 >= l2 && strncasecmp(real, url, l2) == 0) {
1121
                u = apr_pstrcat(r->pool, ent[i].fake, &url[l2], NULL);
1131
                u = apr_pstrcat(r->pool, ent[i].fake, &url[l2], NULL);
1122
                return ap_construct_url(r->pool, u, r);
1132
                return ap_construct_url(r->pool, u, r);

Return to bug 38864