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 d87e09c..ebe043f 100644
--- a/src/standard.c
+++ b/src/standard.c
@@ -629,7 +629,7 @@
* 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);
}
/*