X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/c641e0ab64f447cd39c6d5737fd498ace3ed8735..ed7e3bc822856c30066a4ff0178033b22046fe96:/ui-clone.c diff --git a/ui-clone.c b/ui-clone.c index a4ffd6e..50569d6 100644 --- a/ui-clone.c +++ b/ui-clone.c @@ -71,8 +71,10 @@ static void send_file(char *path) void cgit_clone_info(void) { - if (!ctx.qry.path || strcmp(ctx.qry.path, "refs")) + if (!ctx.qry.path || strcmp(ctx.qry.path, "refs")) { + html_status(400, "Bad request", 0); return; + } ctx.page.mimetype = "text/plain"; ctx.page.filename = "info/refs";