From 9c0ef6876db7e71f92886af15d7b3a9c0c843926 Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Fri, 28 Apr 2017 18:51:15 -0400 Subject: [PATCH] [core] permit strings,ints,arrays in config array (modules may implement more particular restrictions) x-ref: "[mod_proxy] forwarded is a string array only" https://github.com/lighttpd/lighttpd1.4/pull/80 --- src/configfile-glue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/configfile-glue.c b/src/configfile-glue.c index be13ce18..c8e58323 100644 --- a/src/configfile-glue.c +++ b/src/configfile-glue.c @@ -57,7 +57,7 @@ int config_insert_values_internal(server *srv, array *ca, const config_values_t for (j = 0; j < da->value->used; j++) { data_unset *ds = da->value->data[j]; - if (ds->type == TYPE_STRING || ds->type == TYPE_INTEGER) { + if (ds->type == TYPE_STRING || ds->type == TYPE_INTEGER || ds->type == TYPE_ARRAY) { array_insert_unique(cv[i].destination, ds->copy(ds)); } else { log_error_write(srv, __FILE__, __LINE__, "sssbsd",