summaryrefslogtreecommitdiffstats
path: root/modules/proxy/mod_proxy_hcheck.c
diff options
context:
space:
mode:
authorJim Jagielski <jim@apache.org>2016-02-02 19:04:46 +0100
committerJim Jagielski <jim@apache.org>2016-02-02 19:04:46 +0100
commit3d4399435e3655f5fe21b47e618954b3e49bfa1c (patch)
tree16988e72df7a41b2e46cbcd91985394327315896 /modules/proxy/mod_proxy_hcheck.c
parentTie bal-man to hcheck for dynamic adjustments... right now, (diff)
downloadapache2-3d4399435e3655f5fe21b47e618954b3e49bfa1c.tar.xz
apache2-3d4399435e3655f5fe21b47e618954b3e49bfa1c.zip
Now input-ize the values... next step is to tie into the
actual POST git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1728166 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/proxy/mod_proxy_hcheck.c')
-rw-r--r--modules/proxy/mod_proxy_hcheck.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/proxy/mod_proxy_hcheck.c b/modules/proxy/mod_proxy_hcheck.c
index b97dd6414e..cdceddfc81 100644
--- a/modules/proxy/mod_proxy_hcheck.c
+++ b/modules/proxy/mod_proxy_hcheck.c
@@ -1022,8 +1022,9 @@ static void hc_show_exprs(request_rec *r)
continue;
}
cond = (hc_condition_t *)elts[i].val;
- ap_rprintf(r, "<tr><td>%s</td><td>%s</td></tr>\n", elts[i].key,
- cond->expr);
+ ap_rprintf(r, "<tr><td>%s</td><td>%s</td></tr>\n",
+ ap_escape_html(r->pool, elts[i].key),
+ ap_escape_html(r->pool, cond->expr));
}
ap_rputs("</table><hr/>\n", r);
}
@@ -1044,9 +1045,10 @@ static void hc_select_exprs(request_rec *r, const char *expr)
if (!elts[i].key) {
continue;
}
- ap_rprintf(r, "<option value='%s' %s >%s</option>\n", elts[i].key,
+ ap_rprintf(r, "<option value='%s' %s >%s</option>\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));
}
}