]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.c
Introduce noplainemail option to hide email adresses from spambots
[ps-cgit] / cgit.c
diff --git a/cgit.c b/cgit.c
index 2039ab1de53699b6d29a23f1409461386589a227..f6bb0c7ed01bdb8402ce26c4490609a21e24e4d4 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -51,6 +51,8 @@ void config_cb(const char *name, const char *value)
                        ctx.cfg.virtual_root = "";
        } else if (!strcmp(name, "nocache"))
                ctx.cfg.nocache = atoi(value);
+       else if (!strcmp(name, "noplainemail"))
+               ctx.cfg.noplainemail = atoi(value);
        else if (!strcmp(name, "noheader"))
                ctx.cfg.noheader = atoi(value);
        else if (!strcmp(name, "snapshots"))