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:
DL6ER
2023-10-22 19:02:36 +02:00
committed by GitHub
+1 -1
View File
@@ -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)
{