ui-shared: exploit snapshot dwimmery in cgit_print_snapshot_links
Since we know that ui-snapshot.c is able to extract the revision from the filename, there's no longer necessary to specify the revision with a 'id' querystring argument. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
والد
4b4f8d1256
کامیت
b9053a4ff0
@ -707,8 +707,7 @@ void cgit_print_snapshot_links(const char *repo, const char *head,
|
||||
continue;
|
||||
filename = fmt("%s-%s%s", cgit_repobasename(repo), hex,
|
||||
f->suffix);
|
||||
cgit_snapshot_link(filename, NULL, NULL, (char *)head,
|
||||
(char *)hex, filename);
|
||||
cgit_snapshot_link(filename, NULL, NULL, NULL, NULL, filename);
|
||||
html("<br/>");
|
||||
}
|
||||
}
|
||||
|
بارگذاری…
مرجع در شماره جدید
Block a user