From cc17837a9b326ec9100a35981348fa0f5d6316fa Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Wed, 3 Jan 2018 15:51:51 +0100 Subject: disable variable arguments code --- src/core/special-vars.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/special-vars.c') diff --git a/src/core/special-vars.c b/src/core/special-vars.c index aaf8da8f..f254c200 100644 --- a/src/core/special-vars.c +++ b/src/core/special-vars.c @@ -384,6 +384,7 @@ char *parse_special(char **cmd, SERVER_REC *server, void *item, } nest_free = FALSE; nest_value = NULL; +#if 0 /* this code is disabled due to security issues until it is fixed */ if (**cmd == '(' && (*cmd)[1] != '\0') { /* subvariable */ int toplevel = nested_orig_cmd == NULL; @@ -412,6 +413,9 @@ char *parse_special(char **cmd, SERVER_REC *server, void *item, if (toplevel) nested_orig_cmd = NULL; } +#else + if (nested_orig_cmd) nested_orig_cmd = NULL; +#endif if (**cmd != '{') brackets = FALSE; -- cgit v1.2.3