|
diff --git a/cgit.c b/cgit.c index 2039ab1..f6bb0c7 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -46,16 +46,18 @@ void config_cb(const char *name, const char *value) |
46 | else if (!strcmp(name, "module-link")) |
46 | else if (!strcmp(name, "module-link")) |
47 | ctx.cfg.module_link = xstrdup(value); |
47 | ctx.cfg.module_link = xstrdup(value); |
48 | else if (!strcmp(name, "virtual-root")) { |
48 | else if (!strcmp(name, "virtual-root")) { |
49 | ctx.cfg.virtual_root = trim_end(value, '/'); |
49 | ctx.cfg.virtual_root = trim_end(value, '/'); |
50 | if (!ctx.cfg.virtual_root && (!strcmp(value, "/"))) |
50 | if (!ctx.cfg.virtual_root && (!strcmp(value, "/"))) |
51 | ctx.cfg.virtual_root = ""; |
51 | ctx.cfg.virtual_root = ""; |
52 | } else if (!strcmp(name, "nocache")) |
52 | } else if (!strcmp(name, "nocache")) |
53 | ctx.cfg.nocache = atoi(value); |
53 | ctx.cfg.nocache = atoi(value); |
| |
54 | else if (!strcmp(name, "noplainemail")) |
| |
55 | ctx.cfg.noplainemail = atoi(value); |
54 | else if (!strcmp(name, "noheader")) |
56 | else if (!strcmp(name, "noheader")) |
55 | ctx.cfg.noheader = atoi(value); |
57 | ctx.cfg.noheader = atoi(value); |
56 | else if (!strcmp(name, "snapshots")) |
58 | else if (!strcmp(name, "snapshots")) |
57 | ctx.cfg.snapshots = cgit_parse_snapshots_mask(value); |
59 | ctx.cfg.snapshots = cgit_parse_snapshots_mask(value); |
58 | else if (!strcmp(name, "enable-index-links")) |
60 | else if (!strcmp(name, "enable-index-links")) |
59 | ctx.cfg.enable_index_links = atoi(value); |
61 | ctx.cfg.enable_index_links = atoi(value); |
60 | else if (!strcmp(name, "enable-log-filecount")) |
62 | else if (!strcmp(name, "enable-log-filecount")) |
61 | ctx.cfg.enable_log_filecount = atoi(value); |
63 | ctx.cfg.enable_log_filecount = atoi(value); |
|