BUG/MINOR: stats: fix a typo on a closing tag for a server tracking another one

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
This commit is contained in:
Cyril Bont 2014-05-11 23:10:18 +02:00 committed by Willy Tarreau
parent 2039bba41b
commit d5de76a25b

View 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