From ef07ccc72da0270e9298c36046a0187dc359b0da Mon Sep 17 00:00:00 2001 From: Georg Lukas Date: Sat, 28 Nov 2009 03:44:33 +0100 Subject: "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 --- cgit.h | 1 + 1 file changed, 1 insertion(+) (limited to 'cgit.h') diff --git a/cgit.h b/cgit.h index 6c6c460..39853df 100644 --- a/cgit.h +++ b/cgit.h @@ -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; -- cgit v1.2.3-59-g8ed1b