]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: stats: fix a typo on a closing tag for a server tracking another one
authorCyril Bonté <cyril.bonte@free.fr>
Sun, 11 May 2014 21:10:18 +0000 (23:10 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 11 May 2014 23:02:45 +0000 (01:02 +0200)
The "via" column includes a link to the tracked server but instead of closing
the link with a </a> tag, a new tag is opened.

This typo should also be backported to 1.4

src/dumpstats.c

index e0c21b6b99ecd1e4c77265771ac3567dee1d7dfd..b26ec254058c96bb74e89b0c8d37af1ca1f8ba4a 100644 (file)
@@ -2984,11 +2984,11 @@ static int stats_dump_sv_stats(struct stream_interface *si, struct proxy *px, in
                else if (sv != ref) {
                        if (sv->state & SRV_MAINTAIN)
                                chunk_appendf(&trash,
-                                             "<td class=ac colspan=3><a class=lfsb href=\"#%s/%s\"><a></td>",
+                                             "<td class=ac colspan=3><a class=lfsb href=\"#%s/%s\"></a></td>",
                                              ref->proxy->id, ref->id);
                        else
                                chunk_appendf(&trash,
-                                             "<td class=ac colspan=3><a class=lfsb href=\"#%s/%s\">via %s/%s<a></td>",
+                                             "<td class=ac colspan=3><a class=lfsb href=\"#%s/%s\">via %s/%s</a></td>",
                                              ref->proxy->id, ref->id, ref->proxy->id, ref->id);
                }
                else