diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Gate the cache listing behind `enable-cache-list`
The `ls_cache` page printed the cache directory path and the urls other visitors had requested, with no gate at all.
Diffstat (limited to '')
-rw-r--r--source/cgit.c2
1 file changed, 2 insertions, 0 deletions
diff --git a/source/cgit.c b/source/cgit.c
index ca318e8..91dd9a7 100644
--- a/source/cgit.c
+++ b/source/cgit.c
@@ -201,6 +201,8 @@ static void config_cb(const char *name, const char *value)
ctx.cfg.enable_tree_linenumbers = atoi(value);
else if (!strcmp(name, "enable-git-config"))
ctx.cfg.enable_git_config = atoi(value);
+ else if (!strcmp(name, "enable-cache-list"))
+ ctx.cfg.enable_cache_list = atoi(value);
else if (!strcmp(name, "max-stats"))
ctx.cfg.max_stats = cgit_find_stats_period(value, NULL);
else if (!strcmp(name, "cache-size"))