X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/c1572bb5ec4540b5008490cf471cc4a5e65ef728..00ad47bbfaf7cc5c372e072a5302e871b5250390:/ui-snapshot.c 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, } f = get_format(filename); - if (!f) { + if (!f || !(ctx.repo->snapshots & f->bit)) { cgit_print_error_page(400, "Bad request", "Unsupported snapshot format: %s", filename); return;