author | Martin Szulecki <opensuse@sukimashita.com> | 2009-08-07 12:05:17 (UTC) |
---|---|---|
committer | Martin Szulecki <opensuse@sukimashita.com> | 2009-08-08 12:23:28 (UTC) |
commit | 2f56e390f04fe6975b75e512c1436ef173e4aafe (patch) (unidiff) | |
tree | 4e187a5cf039a39a1908623b97e0676c6e7cb756 /cgit.c | |
parent | 286a905842dc0bec6d21a614ec4a97c5f19d5bc4 (diff) | |
download | cgit-2f56e390f04fe6975b75e512c1436ef173e4aafe.zip cgit-2f56e390f04fe6975b75e512c1436ef173e4aafe.tar.gz cgit-2f56e390f04fe6975b75e512c1436ef173e4aafe.tar.bz2 |
Introduce noplainemail option to hide email adresses from spambots
Signed-off-by: Martin Szulecki <opensuse@sukimashita.com>
-rw-r--r-- | cgit.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -38,32 +38,34 @@ void config_cb(const char *name, const char *value) | |||
38 | else if (!strcmp(name, "logo")) | 38 | else if (!strcmp(name, "logo")) |
39 | ctx.cfg.logo = xstrdup(value); | 39 | ctx.cfg.logo = xstrdup(value); |
40 | else if (!strcmp(name, "index-header")) | 40 | else if (!strcmp(name, "index-header")) |
41 | ctx.cfg.index_header = xstrdup(value); | 41 | ctx.cfg.index_header = xstrdup(value); |
42 | else if (!strcmp(name, "index-info")) | 42 | else if (!strcmp(name, "index-info")) |
43 | ctx.cfg.index_info = xstrdup(value); | 43 | ctx.cfg.index_info = xstrdup(value); |
44 | else if (!strcmp(name, "logo-link")) | 44 | else if (!strcmp(name, "logo-link")) |
45 | ctx.cfg.logo_link = xstrdup(value); | 45 | ctx.cfg.logo_link = xstrdup(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); |
62 | else if (!strcmp(name, "enable-log-linecount")) | 64 | else if (!strcmp(name, "enable-log-linecount")) |
63 | ctx.cfg.enable_log_linecount = atoi(value); | 65 | ctx.cfg.enable_log_linecount = atoi(value); |
64 | else if (!strcmp(name, "max-stats")) | 66 | else if (!strcmp(name, "max-stats")) |
65 | ctx.cfg.max_stats = cgit_find_stats_period(value, NULL); | 67 | ctx.cfg.max_stats = cgit_find_stats_period(value, NULL); |
66 | else if (!strcmp(name, "cache-size")) | 68 | else if (!strcmp(name, "cache-size")) |
67 | ctx.cfg.cache_size = atoi(value); | 69 | ctx.cfg.cache_size = atoi(value); |
68 | else if (!strcmp(name, "cache-root")) | 70 | else if (!strcmp(name, "cache-root")) |
69 | ctx.cfg.cache_root = xstrdup(value); | 71 | ctx.cfg.cache_root = xstrdup(value); |