From 2dbbf4db8578e970a14d27c05c4d336dcafb48eb Mon Sep 17 00:00:00 2001 From: Jeff Buchbinder Date: Fri, 29 Aug 2014 15:10:08 -0500 Subject: [PATCH] MEDIUM: stats: proxied stats admin forms fix Patch for not using relative URLs for admin forms. This allows proxied instances of the stats admin interface to continue to function, as the default FORM action is to submit to the current URL. --- src/dumpstats.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/dumpstats.c b/src/dumpstats.c index 56512e797..0e87f09e7 100644 --- a/src/dumpstats.c +++ b/src/dumpstats.c @@ -3630,11 +3630,7 @@ static void stats_dump_html_px_hdr(struct stream_interface *si, struct proxy *px } chunk_appendf(&trash, - "
", - uri->uri_prefix, - (appctx->ctx.stats.flags & STAT_HIDE_DOWN) ? ";up" : "", - (appctx->ctx.stats.flags & STAT_NO_REFRESH) ? ";norefresh" : "", - scope_txt); + ""); } /* print a new table */ @@ -4138,10 +4134,7 @@ static void stats_dump_html_info(struct stream_interface *si, struct uri_auth *u scope_txt[appctx->ctx.stats.scope_len] = '\0'; chunk_appendf(&trash, - "
  • Scope :
  • \n", - uri->uri_prefix, - (appctx->ctx.stats.flags & STAT_HIDE_DOWN) ? ";up" : "", - (appctx->ctx.stats.flags & STAT_NO_REFRESH) ? ";norefresh" : "", + "
  • Scope :
    \n", (appctx->ctx.stats.scope_len > 0) ? scope_txt : "", STAT_SCOPE_TXT_MAXLEN);