Bugfix for config post processing
This commit is contained in:
@ -177,7 +177,7 @@ int config_load(const char *filename) {
|
|||||||
}
|
}
|
||||||
free(conf);
|
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) {
|
if (tmp_config[j].type == CONFIG_TYPE_LOCAL) {
|
||||||
char *webroot = tmp_config[j].local.webroot;
|
char *webroot = tmp_config[j].local.webroot;
|
||||||
if (webroot[strlen(webroot) - 1] == '/') {
|
if (webroot[strlen(webroot) - 1] == '/') {
|
||||||
|
Reference in New Issue
Block a user