From: Thierry Fournier Date: Mon, 26 Mar 2018 09:54:39 +0000 (+0200) Subject: MINOR: servers: Support alphanumeric characters for the server templates names X-Git-Tag: v1.9-dev1~309 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f7b7c3e2f2d0bdf835a204cbccdff8005292ccaf;p=thirdparty%2Fhaproxy.git MINOR: servers: Support alphanumeric characters for the server templates names '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] --- diff --git a/src/standard.c b/src/standard.c index d87e09cc10..ebe043f182 100644 --- a/src/standard.c +++ b/src/standard.c @@ -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); } /*