From: Jeff Buchbinder Date: Fri, 29 Aug 2014 20:10:08 +0000 (-0500) Subject: MEDIUM: stats: proxied stats admin forms fix X-Git-Tag: v1.6-dev1~1 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=2dbbf4db8578e970a14d27c05c4d336dcafb48eb;p=haproxy.git 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. --- 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);