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

(-)modules/proxy/mod_proxy_balancer.c (-1 / +4 lines)
Lines 1115-1120 Link Here
1115
    int ok2change = 1;
1115
    int ok2change = 1;
1116
    const char *name;
1116
    const char *name;
1117
    const char *action;
1117
    const char *action;
1118
    const char *xml;
1118
    apr_status_t rv;
1119
    apr_status_t rv;
1119
1120
1120
    /* is this for us? */
1121
    /* is this for us? */
Lines 1177-1182 Link Here
1177
        wsel = ap_proxy_get_worker(r->pool, bsel, conf, name);
1178
        wsel = ap_proxy_get_worker(r->pool, bsel, conf, name);
1178
    }
1179
    }
1179
1180
1181
    xml = apr_table_get(params, "xml");
1180
1182
1181
    /* Check that the supplied nonce matches this server's nonce;
1183
    /* Check that the supplied nonce matches this server's nonce;
1182
     * otherwise ignore all parameters, to prevent a CSRF attack. */
1184
     * otherwise ignore all parameters, to prevent a CSRF attack. */
Lines 1428-1434 Link Here
1428
    action = ap_construct_url(r->pool, r->uri, r);
1430
    action = ap_construct_url(r->pool, r->uri, r);
1429
    ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(01204) "genning page");
1431
    ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(01204) "genning page");
1430
1432
1431
    if (apr_table_get(params, "xml")) {
1433
    if (xml) {
1432
        char date[APR_RFC822_DATE_LEN];
1434
        char date[APR_RFC822_DATE_LEN];
1433
        ap_set_content_type(r, "text/xml");
1435
        ap_set_content_type(r, "text/xml");
1434
        ap_rputs("<?xml version='1.0' encoding='UTF-8' ?>\n", r);
1436
        ap_rputs("<?xml version='1.0' encoding='UTF-8' ?>\n", r);
Lines 1439-1444 Link Here
1439
            ap_rputs("    <httpd:balancer>\n", r);
1441
            ap_rputs("    <httpd:balancer>\n", r);
1440
            /* Start proxy_balancer */
1442
            /* Start proxy_balancer */
1441
            ap_rvputs(r, "      <httpd:name>", balancer->s->name, "</httpd:name>\n", NULL);
1443
            ap_rvputs(r, "      <httpd:name>", balancer->s->name, "</httpd:name>\n", NULL);
1444
            ap_rvputs(r, "      <httpd:nonce>", balancer->s->nonce, "</httpd:nonce>\n", NULL);
1442
            if (*balancer->s->sticky) {
1445
            if (*balancer->s->sticky) {
1443
                ap_rvputs(r, "      <httpd:stickysession>", balancer->s->sticky,
1446
                ap_rvputs(r, "      <httpd:stickysession>", balancer->s->sticky,
1444
                          "</httpd:stickysession>\n", NULL);
1447
                          "</httpd:stickysession>\n", NULL);

Return to bug 63074