mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Merge pull request #1690 from pi-hole/tweak/env_semicolon
Allow both commas and semicolons for separating array env var entries
This commit is contained in:
@@ -933,7 +933,7 @@ bool readEnvValue(struct conf_item *conf_item, struct config *newconf)
|
||||
cJSON_Delete(conf_item->v.json);
|
||||
conf_item->v.json = cJSON_CreateArray();
|
||||
// Parse envvar array and generate a JSON array
|
||||
const char delim[] =",";
|
||||
const char delim[] =",;";
|
||||
const char *elem = strtok(envvar_copy, delim);
|
||||
while(elem != NULL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user