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
@@ -30,48 +30,50 @@ void config_cb(const char *name, const char *value) | |||
30 | else if (!strcmp(name, "favicon")) | 30 | else if (!strcmp(name, "favicon")) |
31 | ctx.cfg.favicon = xstrdup(value); | 31 | ctx.cfg.favicon = xstrdup(value); |
32 | else if (!strcmp(name, "footer")) | 32 | else if (!strcmp(name, "footer")) |
33 | ctx.cfg.footer = xstrdup(value); | 33 | ctx.cfg.footer = xstrdup(value); |
34 | else if (!strcmp(name, "head-include")) | 34 | else if (!strcmp(name, "head-include")) |
35 | ctx.cfg.head_include = xstrdup(value); | 35 | ctx.cfg.head_include = xstrdup(value); |
36 | else if (!strcmp(name, "header")) | 36 | else if (!strcmp(name, "header")) |
37 | ctx.cfg.header = xstrdup(value); | 37 | ctx.cfg.header = xstrdup(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); |
70 | else if (!strcmp(name, "cache-root-ttl")) | 72 | else if (!strcmp(name, "cache-root-ttl")) |
71 | ctx.cfg.cache_root_ttl = atoi(value); | 73 | ctx.cfg.cache_root_ttl = atoi(value); |
72 | else if (!strcmp(name, "cache-repo-ttl")) | 74 | else if (!strcmp(name, "cache-repo-ttl")) |
73 | ctx.cfg.cache_repo_ttl = atoi(value); | 75 | ctx.cfg.cache_repo_ttl = atoi(value); |
74 | else if (!strcmp(name, "cache-static-ttl")) | 76 | else if (!strcmp(name, "cache-static-ttl")) |
75 | ctx.cfg.cache_static_ttl = atoi(value); | 77 | ctx.cfg.cache_static_ttl = atoi(value); |
76 | else if (!strcmp(name, "cache-dynamic-ttl")) | 78 | else if (!strcmp(name, "cache-dynamic-ttl")) |
77 | ctx.cfg.cache_dynamic_ttl = atoi(value); | 79 | ctx.cfg.cache_dynamic_ttl = atoi(value); |