[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
personal/stbuehler/mod-csrf
Glenn Strauss 6 years ago
parent b23065e547
commit 9c0ef6876d

@ -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",

Loading…
Cancel
Save