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

(-)modules/mappers/mod_negotiation.c.orig (-2 / +2 lines)
Lines 2530-2536 Link Here
2530
        /* Generate the string components for this Alternates entry */
2530
        /* Generate the string components for this Alternates entry */
2531
2531
2532
        *((const char **) apr_array_push(arr)) = "{\"";
2532
        *((const char **) apr_array_push(arr)) = "{\"";
2533
        *((const char **) apr_array_push(arr)) = variant->file_name;
2533
        *((const char **) apr_array_push(arr)) = ap_escape_path_segment(r->pool, variant->file_name);
2534
        *((const char **) apr_array_push(arr)) = "\" ";
2534
        *((const char **) apr_array_push(arr)) = "\" ";
2535
2535
2536
        qstr = (char *) apr_palloc(r->pool, 6);
2536
        qstr = (char *) apr_palloc(r->pool, 6);
Lines 2804-2810 Link Here
2804
    }
2804
    }
2805
2805
2806
    apr_table_setn(r->err_headers_out, "Content-Location",
2806
    apr_table_setn(r->err_headers_out, "Content-Location",
2807
                  apr_pstrdup(r->pool, variant->file_name));
2807
                  ap_escape_path_segment(r->pool, variant->file_name));
2808
2808
2809
    set_neg_headers(r, neg, alg_choice);         /* add Alternates and Vary */
2809
    set_neg_headers(r, neg, alg_choice);         /* add Alternates and Vary */
2810
2810

Return to bug 355540