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

(-)modules/mappers/mod_rewrite.c (-14 / +3 lines)
Lines 849-868 Link Here
849
        return;
849
        return;
850
    }
850
    }
851
    else if (!is_absolute_uri(r->filename)) {
851
    else if (!is_absolute_uri(r->filename)) {
852
        const char *thisserver;
852
        const char *path = (*r->filename == '/') ? r->filename :
853
        char *thisport;
853
            apr_pstrcat(r->pool, "/", r->filename, NULL);
854
        int port;
854
        r->filename = ap_construct_url(r->pool, path, r);
855
856
        thisserver = ap_get_server_name(r);
857
        port = ap_get_server_port(r);
858
        thisport = ap_is_default_port(port, r)
859
                   ? ""
860
                   : apr_psprintf(r->pool, ":%u", port);
861
862
        r->filename = apr_psprintf(r->pool, "%s://%s%s%s%s",
863
                                   ap_http_scheme(r), thisserver, thisport,
864
                                   (*r->filename == '/') ? "" : "/",
865
                                   r->filename);
866
    }
855
    }
867
856
868
    return;
857
    return;

Return to bug 52831