forms: action should not be empty
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
9afda36ed7
commit
c34e28835b
@ -937,7 +937,7 @@ static void print_header(void)
|
|||||||
cgit_summary_link(ctx.repo->name, ctx.repo->name, NULL, NULL);
|
cgit_summary_link(ctx.repo->name, ctx.repo->name, NULL, NULL);
|
||||||
if (ctx.env.authenticated) {
|
if (ctx.env.authenticated) {
|
||||||
html("</td><td class='form'>");
|
html("</td><td class='form'>");
|
||||||
html("<form method='get' action=''>\n");
|
html("<form method='get'>\n");
|
||||||
cgit_add_hidden_formfields(0, 1, ctx.qry.page);
|
cgit_add_hidden_formfields(0, 1, ctx.qry.page);
|
||||||
html("<select name='h' onchange='this.form.submit();'>\n");
|
html("<select name='h' onchange='this.form.submit();'>\n");
|
||||||
for_each_branch_ref(print_branch_option, ctx.qry.head);
|
for_each_branch_ref(print_branch_option, ctx.qry.head);
|
||||||
|
@ -389,7 +389,7 @@ void cgit_show_stats(void)
|
|||||||
cgit_print_layout_start();
|
cgit_print_layout_start();
|
||||||
html("<div class='cgit-panel'>");
|
html("<div class='cgit-panel'>");
|
||||||
html("<b>stat options</b>");
|
html("<b>stat options</b>");
|
||||||
html("<form method='get' action=''>");
|
html("<form method='get'>");
|
||||||
cgit_add_hidden_formfields(1, 0, "stats");
|
cgit_add_hidden_formfields(1, 0, "stats");
|
||||||
html("<table><tr><td colspan='2'/></tr>");
|
html("<table><tr><td colspan='2'/></tr>");
|
||||||
if (ctx.repo->max_stats > 1) {
|
if (ctx.repo->max_stats > 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user