Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 39B3818CC8 for ; Tue, 2 Feb 2016 18:04:52 +0000 (UTC) Received: (qmail 25739 invoked by uid 500); 2 Feb 2016 18:04:49 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 25677 invoked by uid 500); 2 Feb 2016 18:04:49 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 25668 invoked by uid 99); 2 Feb 2016 18:04:49 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2016 18:04:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id A3AC9C1466 for ; Tue, 2 Feb 2016 18:04:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.247 X-Spam-Level: * X-Spam-Status: No, score=1.247 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.553] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id otdoSNlUwg5O for ; Tue, 2 Feb 2016 18:04:47 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTP id CF228429E2 for ; Tue, 2 Feb 2016 18:04:46 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 55A28E0185 for ; Tue, 2 Feb 2016 18:04:46 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 5668F3A00E7 for ; Tue, 2 Feb 2016 18:04:46 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1728166 - in /httpd/httpd/trunk/modules/proxy: mod_proxy_balancer.c mod_proxy_hcheck.c Date: Tue, 02 Feb 2016 18:04:46 -0000 To: cvs@httpd.apache.org From: jim@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160202180446.5668F3A00E7@svn01-us-west.apache.org> Author: jim Date: Tue Feb 2 18:04:46 2016 New Revision: 1728166 URL: http://svn.apache.org/viewvc?rev=1728166&view=rev Log: Now input-ize the values... next step is to tie into the actual POST Modified: httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c httpd/httpd/trunk/modules/proxy/mod_proxy_hcheck.c Modified: httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c?rev=1728166&r1=1728165&r2=1728166&view=diff ============================================================================== --- httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c (original) +++ httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c Tue Feb 2 18:04:46 2016 @@ -1486,10 +1486,10 @@ static int balancer_handler(request_rec for (i = 0; i < conf->balancers->nelts; i++) { ap_rputs("
\n

LoadBalancer Status for ", r); - ap_rvputs(r, "pool, r->uri), "?b=", + ap_rvputs(r, "", NULL); ap_rvputs(r, balancer->s->name, " [",balancer->s->sname, "]

\n", NULL); ap_rputs("\n\n" "" @@ -1539,12 +1539,12 @@ static int balancer_handler(request_rec for (n = 0; n < balancer->workers->nelts; n++) { char fbuf[50]; worker = *workers; - ap_rvputs(r, "\n", NULL); ap_rvputs(r, "
MaxMembersStickySessionDisableFailoverTimeoutFailoverAttemptsMethod
\n", NULL); ap_rvputs(r, (*worker->s->uds_path ? "" : ""), ap_proxy_worker_name(r->pool, worker), (*worker->s->uds_path ? "" : ""), "", ap_escape_html(r->pool, worker->s->route), @@ -1583,20 +1583,20 @@ static int balancer_handler(request_rec if (wsel && bsel) { ap_rputs("

Edit worker settings for ", r); ap_rvputs(r, (*wsel->s->uds_path?"":""), ap_proxy_worker_name(r->pool, wsel), (*wsel->s->uds_path?"":""), "

\n", NULL); - ap_rputs("
pool, action), "\">\n", NULL); + ap_rputs("\n", NULL); ap_rputs("\n", wsel->s->lbfactor); ap_rputs("\n", wsel->s->lbset); ap_rputs("\n", r); + ap_rputs("'>\n", r); ap_rputs("\n", r); + ap_rputs("'>\n", r); ap_rputs("", r); ap_rputs("
Load factor:
LB Set:
Route:pool, wsel->s->route), + ap_rvputs(r, "value='", ap_escape_html(r->pool, wsel->s->route), NULL); - ap_rputs("\">
Route Redirect:pool, wsel->s->redirect), + ap_rvputs(r, "value='", ap_escape_html(r->pool, wsel->s->redirect), NULL); - ap_rputs("\">
Status:" "" @@ -1619,7 +1619,7 @@ static int balancer_handler(request_rec if (hc_select_exprs_f) { proxy_hcmethods_t *method = proxy_hcmethods; ap_rputs("\n", r); } ap_rputs("\n", r); Modified: httpd/httpd/trunk/modules/proxy/mod_proxy_hcheck.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy_hcheck.c?rev=1728166&r1=1728165&r2=1728166&view=diff ============================================================================== --- httpd/httpd/trunk/modules/proxy/mod_proxy_hcheck.c (original) +++ httpd/httpd/trunk/modules/proxy/mod_proxy_hcheck.c Tue Feb 2 18:04:46 2016 @@ -1022,8 +1022,9 @@ static void hc_show_exprs(request_rec *r continue; } cond = (hc_condition_t *)elts[i].val; - ap_rprintf(r, "\n", elts[i].key, - cond->expr); + ap_rprintf(r, "\n", + ap_escape_html(r->pool, elts[i].key), + ap_escape_html(r->pool, cond->expr)); } ap_rputs("
Ignore Errors
\n\n", r); - ap_rputs("\n", r); - ap_rputs("\n", r); - ap_rprintf(r, "\n", (int)apr_time_sec(wsel->s->interval)); - ap_rprintf(r, "\n", wsel->s->fails); - ap_rprintf(r, "\n", wsel->s->passes); - ap_rprintf(r, "\n", wsel->s->hcuri); + ap_rprintf(r, "\n", (int)apr_time_sec(wsel->s->interval)); + ap_rprintf(r, "\n", wsel->s->passes); + ap_rprintf(r, "\n", wsel->s->fails); + ap_rprintf(r, "\n", ap_escape_html(r->pool, wsel->s->hcuri)); ap_rputs("
Health Check paramValue
Method
Method\n
Expr
Expr\n
Interval (secs)%d
Fails trigger%d
Passes trigger%d
HC uri%s
Interval (secs)
Passes trigger
Fails trigger)
HC uri
\n
%s%s
%s%s

\n", r); } @@ -1044,9 +1045,10 @@ static void hc_select_exprs(request_rec if (!elts[i].key) { continue; } - ap_rprintf(r, "\n", elts[i].key, + ap_rprintf(r, "\n", + ap_escape_html(r->pool, elts[i].key), (!ap_casecmpstr(elts[i].key, expr)) ? "selected" : "", - elts[i].key); + ap_escape_html(r->pool, elts[i].key)); } }