diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/sp_config_keywords.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { | |||
| 336 | } | 336 | } |
| 337 | 337 | ||
| 338 | if (param) { | 338 | if (param) { |
| 339 | if (strlen(param) > 0) { | 339 | if (strlen(param) > 0 && param[0] != '$') { |
| 340 | /* This is an ugly hack. We're prefixing with a `$` because otherwise | 340 | /* This is an ugly hack. We're prefixing with a `$` because otherwise |
| 341 | * the parser treats this as a constant. | 341 | * the parser treats this as a constant. |
| 342 | * FIXME: Remote this, and improve our (weird) parser. */ | 342 | * FIXME: Remove this, and improve our (weird) parser. */ |
| 343 | char *new = pecalloc(strlen(param) + 2, 1, 1); | 343 | char *new = pecalloc(strlen(param) + 2, 1, 1); |
| 344 | new[0] = '$'; | 344 | new[0] = '$'; |
| 345 | memcpy(new + 1, param, strlen(param)); | 345 | memcpy(new + 1, param, strlen(param)); |
