From: Ruediger Pluem Date: Mon, 13 Jan 2025 13:37:40 +0000 (+0000) Subject: * Do not add a space before '|' when setting the value for stickysession in the X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6433e9252057be5a9b10f9f02919564c3844b552;p=thirdparty%2Fapache%2Fhttpd.git * Do not add a space before '|' when setting the value for stickysession in the balancer manager as this breaks the stickysession configuration once a new configuration is submitted by the balancer manager. PR: 69510 Submitted by: Yutaka Tokunou Reviewed by: rpluem git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1923101 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/changes-entries/69510.txt b/changes-entries/69510.txt new file mode 100644 index 00000000000..ba09b602eac --- /dev/null +++ b/changes-entries/69510.txt @@ -0,0 +1,3 @@ + *) mod_proxy_balancer: Fix the handling of the stickysession configuration + parameter by the balancer manager. PR 69510 + [Yutaka Tokunou ] diff --git a/modules/proxy/mod_proxy_balancer.c b/modules/proxy/mod_proxy_balancer.c index 38ff05c7f2e..984c61f016e 100644 --- a/modules/proxy/mod_proxy_balancer.c +++ b/modules/proxy/mod_proxy_balancer.c @@ -1643,7 +1643,7 @@ static void balancer_display_page(request_rec *r, proxy_server_conf *conf, balancer->max_workers - (int)storage->num_free_slots(balancer->wslot)); if (*balancer->s->sticky) { if (strcmp(balancer->s->sticky, balancer->s->sticky_path)) { - ap_rvputs(r, "", ap_escape_html(r->pool, balancer->s->sticky), " | ", + ap_rvputs(r, "", ap_escape_html(r->pool, balancer->s->sticky), "|", ap_escape_html(r->pool, balancer->s->sticky_path), NULL); } else { @@ -1828,7 +1828,7 @@ static void balancer_display_page(request_rec *r, proxy_server_conf *conf, ap_rputs("\n", r); ap_rputs("Sticky Session:s->sticky, bsel->s->sticky_path)) { - ap_rvputs(r, "value =\"", ap_escape_html(r->pool, bsel->s->sticky), " | ", + ap_rvputs(r, "value =\"", ap_escape_html(r->pool, bsel->s->sticky), "|", ap_escape_html(r->pool, bsel->s->sticky_path), NULL); } else {