Bugfix for config post processing

This commit is contained in:
2021-03-16 22:07:19 +01:00
parent 81931d287d
commit 63781472fa

View File

@ -177,7 +177,7 @@ int config_load(const char *filename) {
}
free(conf);
for (int j = 0; j < i - 1; j++) {
for (int j = 0; j < i; j++) {
if (tmp_config[j].type == CONFIG_TYPE_LOCAL) {
char *webroot = tmp_config[j].local.webroot;
if (webroot[strlen(webroot) - 1] == '/') {