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).
---
 src/dumpstats.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/dumpstats.c b/src/dumpstats.c
index 16d07dd..3f88fc5 100644
--- a/src/dumpstats.c
+++ b/src/dumpstats.c
@@ -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");
-- 
1.7.9.1


Reply via email to