aboutsummaryrefslogtreecommitdiffstats
path: root/ui-atom.c
diff options
context:
space:
mode:
authorMartin Szulecki <opensuse@sukimashita.com>2009-08-07 14:05:17 +0200
committerMartin Szulecki <opensuse@sukimashita.com>2009-08-08 14:23:28 +0200
commit2f56e390f04fe6975b75e512c1436ef173e4aafe (patch)
tree4e187a5cf039a39a1908623b97e0676c6e7cb756 /ui-atom.c
parent286a905842dc0bec6d21a614ec4a97c5f19d5bc4 (diff)
downloadcgit-2f56e390f04fe6975b75e512c1436ef173e4aafe.tar.gz
cgit-2f56e390f04fe6975b75e512c1436ef173e4aafe.tar.bz2
cgit-2f56e390f04fe6975b75e512c1436ef173e4aafe.zip
Introduce noplainemail option to hide email adresses from spambots
Signed-off-by: Martin Szulecki <opensuse@sukimashita.com>
Diffstat (limited to 'ui-atom.c')
-rw-r--r--ui-atom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-atom.c b/ui-atom.c
index e5c31d9..808b2d0 100644
--- a/ui-atom.c
+++ b/ui-atom.c
@@ -32,7 +32,7 @@ void add_entry(struct commit *commit, char *host)
html_txt(info->author);
html("</name>\n");
}
- if (info->author_email) {
+ if (info->author_email && !ctx.cfg.noplainemail) {
mail = xstrdup(info->author_email);
t = strchr(mail, '<');
if (t)