MINOR: stats admin: use the backend id instead of its name in the form

Proxy ids are unique whereas names can be used several times in the
configuration. In order to prevent the ambiguity, the HTML form now provides
the backend id instead of its name (the name can still be provided in the POST
data).
This commit is contained in:
Cyril Bonté 2012-04-04 12:57:20 +02:00 committed by Willy Tarreau
parent 0bb519e6e5
commit aa0a45d2ed

View File

@ -3160,10 +3160,10 @@ static int stats_dump_proxy(struct stream_interface *si, struct proxy *px, struc
"<option value=\"disable\">Disable</option>"
"<option value=\"enable\">Enable</option>"
"</select>"
"<input type=\"hidden\" name=\"b\" value=\"%s\">"
"<input type=\"hidden\" name=\"b\" value=\"#%d\">"
"&nbsp;<input type=\"submit\" value=\"Apply\">"
"</form>",
px->id);
px->uuid);
}
chunk_printf(&msg, "<p>\n");