mirror of
https://git.zx2c4.com/cgit
synced 2025-07-02 22:34:32 +02:00
ui-plain: add enable-html-serving flag
Unrestricts plain/ to contents likely to be executed by browser.
This commit is contained in:
parent
9ca2566972
commit
c326f3eb02
5 changed files with 29 additions and 0 deletions
1
shared.c
1
shared.c
|
@ -61,6 +61,7 @@ struct cgit_repo *cgit_add_repo(const char *url)
|
|||
ret->enable_log_linecount = ctx.cfg.enable_log_linecount;
|
||||
ret->enable_remote_branches = ctx.cfg.enable_remote_branches;
|
||||
ret->enable_subject_links = ctx.cfg.enable_subject_links;
|
||||
ret->enable_html_serving = ctx.cfg.enable_html_serving;
|
||||
ret->max_stats = ctx.cfg.max_stats;
|
||||
ret->branch_sort = ctx.cfg.branch_sort;
|
||||
ret->commit_sort = ctx.cfg.commit_sort;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue