From 6effbcb5203cda0f743417bd5585942c6d5a7d08 Mon Sep 17 00:00:00 2001 From: Sebastien Blot Date: Fri, 12 Jan 2018 17:05:21 +0100 Subject: do not prepend $ to the var name if there is one already --- src/sp_config_keywords.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/sp_config_keywords.c b/src/sp_config_keywords.c index dad538c..135868b 100644 --- a/src/sp_config_keywords.c +++ b/src/sp_config_keywords.c @@ -336,10 +336,10 @@ int parse_disabled_functions(char *line) { } if (param) { - if (strlen(param) > 0) { + if (strlen(param) > 0 && param[0] != '$') { /* This is an ugly hack. We're prefixing with a `$` because otherwise * the parser treats this as a constant. - * FIXME: Remote this, and improve our (weird) parser. */ + * FIXME: Remove this, and improve our (weird) parser. */ char *new = pecalloc(strlen(param) + 2, 1, 1); new[0] = '$'; memcpy(new + 1, param, strlen(param)); -- cgit v1.3