diff options
Diffstat (limited to 'ui-snapshot.c')
-rw-r--r-- | ui-snapshot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-snapshot.c b/ui-snapshot.c index b9e2a36..abf8399 100644 --- a/ui-snapshot.c +++ b/ui-snapshot.c | |||
@@ -194,7 +194,7 @@ void cgit_print_snapshot(const char *head, const char *hex, | |||
194 | } | 194 | } |
195 | 195 | ||
196 | f = get_format(filename); | 196 | f = get_format(filename); |
197 | if (!f) { | 197 | if (!f || !(ctx.repo->snapshots & f->bit)) { |
198 | cgit_print_error_page(400, "Bad request", | 198 | cgit_print_error_page(400, "Bad request", |
199 | "Unsupported snapshot format: %s", filename); | 199 | "Unsupported snapshot format: %s", filename); |
200 | return; | 200 | return; |