]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: servers: Support alphanumeric characters for the server templates names
authorThierry Fournier <tfournier@premaccess.com>
Mon, 26 Mar 2018 09:54:39 +0000 (11:54 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 Apr 2018 17:16:18 +0000 (19:16 +0200)
'server-template' directive doesn't support the same name alphabet as
the 'server' directive. This patch allows the usage of chars [0-9].

[wt: let's backport this to 1.8 to apply the principle of least surprize
 to people migrating to server templates]

src/standard.c

index d87e09cc1010484ce42bdc62216592e1b614bc71..ebe043f182fbcf4f0eb2e2737c508b2f4565e4a0 100644 (file)
@@ -629,7 +629,7 @@ const char *invalid_domainchar(const char *name) {
  * If everything is fine, NULL is returned.
  */
 const char *invalid_prefix_char(const char *name) {
-       return __invalid_char(name, isalpha);
+       return __invalid_char(name, isalnum);
 }
 
 /*