]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: stats admin: use the backend id instead of its name in the form
authorCyril Bonté <cyril.bonte@free.fr>
Wed, 4 Apr 2012 10:57:20 +0000 (12:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 5 Apr 2012 07:58:26 +0000 (09:58 +0200)
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

index 16d07ddb21f766cd72beb3b6aa8bda01fd16e832..3f88fc50734a93a6154eaec8c48787e92d37b9cc 100644 (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");