"max-blob-size" config var to limit generated HTML size

Sometimes it is not feasible to generate the HTML pretty-print for large
files, especially if a source-filter is involved or binary data is to be
displayed. The "max-blob-size" config var allows to disable HTML output
for blobs bigger than X KBytes. Plain downloads are not affected.

Signed-off-by: Georg Lukas <georg@op-co.de>
This commit is contained in:
Georg Lukas
2009-11-28 03:44:33 +01:00
parent 545b5a5dca
commit ef07ccc72d
4 changed files with 14 additions and 0 deletions

1
cgit.h
View File

@ -185,6 +185,7 @@ struct cgit_config {
int max_lock_attempts;
int max_msg_len;
int max_repodesc_len;
int max_blob_size;
int max_stats;
int nocache;
int noplainemail;