|
diff --git a/cgit.c b/cgit.c index 96900bb..412fbf0 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -116,16 +116,18 @@ void config_cb(const char *name, const char *value) |
116 | else if (!strcmp(name, "index-header")) |
116 | else if (!strcmp(name, "index-header")) |
117 | ctx.cfg.index_header = xstrdup(value); |
117 | ctx.cfg.index_header = xstrdup(value); |
118 | else if (!strcmp(name, "index-info")) |
118 | else if (!strcmp(name, "index-info")) |
119 | ctx.cfg.index_info = xstrdup(value); |
119 | ctx.cfg.index_info = xstrdup(value); |
120 | else if (!strcmp(name, "logo-link")) |
120 | else if (!strcmp(name, "logo-link")) |
121 | ctx.cfg.logo_link = xstrdup(value); |
121 | ctx.cfg.logo_link = xstrdup(value); |
122 | else if (!strcmp(name, "module-link")) |
122 | else if (!strcmp(name, "module-link")) |
123 | ctx.cfg.module_link = xstrdup(value); |
123 | ctx.cfg.module_link = xstrdup(value); |
| |
124 | else if (!strcmp(name, "strict-export")) |
| |
125 | ctx.cfg.strict_export = xstrdup(value); |
124 | else if (!strcmp(name, "virtual-root")) { |
126 | else if (!strcmp(name, "virtual-root")) { |
125 | ctx.cfg.virtual_root = trim_end(value, '/'); |
127 | ctx.cfg.virtual_root = trim_end(value, '/'); |
126 | if (!ctx.cfg.virtual_root && (!strcmp(value, "/"))) |
128 | if (!ctx.cfg.virtual_root && (!strcmp(value, "/"))) |
127 | ctx.cfg.virtual_root = ""; |
129 | ctx.cfg.virtual_root = ""; |
128 | } else if (!strcmp(name, "nocache")) |
130 | } else if (!strcmp(name, "nocache")) |
129 | ctx.cfg.nocache = atoi(value); |
131 | ctx.cfg.nocache = atoi(value); |
130 | else if (!strcmp(name, "noplainemail")) |
132 | else if (!strcmp(name, "noplainemail")) |
131 | ctx.cfg.noplainemail = atoi(value); |
133 | ctx.cfg.noplainemail = atoi(value); |
|