mirror of
https://git.zx2c4.com/cgit
synced 2024-11-29 11:56:21 +00:00
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:
parent
4b4f8d1256
commit
b9053a4ff0
@ -707,8 +707,7 @@ void cgit_print_snapshot_links(const char *repo, const char *head,
|
|||||||
continue;
|
continue;
|
||||||
filename = fmt("%s-%s%s", cgit_repobasename(repo), hex,
|
filename = fmt("%s-%s%s", cgit_repobasename(repo), hex,
|
||||||
f->suffix);
|
f->suffix);
|
||||||
cgit_snapshot_link(filename, NULL, NULL, (char *)head,
|
cgit_snapshot_link(filename, NULL, NULL, NULL, NULL, filename);
|
||||||
(char *)hex, filename);
|
|
||||||
html("<br/>");
|
html("<br/>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user