aboutsummaryrefslogtreecommitdiffstats
path: root/ui-shared.c
diff options
context:
space:
mode:
authorJason A. Donenfeld2016-05-12 21:29:40 +0200
committerJason A. Donenfeld2016-05-12 21:29:49 +0200
commitc34e28835bc06ea9f76f440909f59a697910e9e8 (patch)
tree346b38d0df26a03f34ac02042e28886bf790fae2 /ui-shared.c
parent9afda36ed72083febca5e1a249b7f9f09205fe16 (diff)
downloadcgit-c34e28835bc06ea9f76f440909f59a697910e9e8.tar.gz
cgit-c34e28835bc06ea9f76f440909f59a697910e9e8.tar.bz2
cgit-c34e28835bc06ea9f76f440909f59a697910e9e8.zip
forms: action should not be empty
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui-shared.c')
-rw-r--r--ui-shared.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-shared.c b/ui-shared.c
index 770b685..2c88b72 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -937,7 +937,7 @@ static void print_header(void)
937 cgit_summary_link(ctx.repo->name, ctx.repo->name, NULL, NULL); 937 cgit_summary_link(ctx.repo->name, ctx.repo->name, NULL, NULL);
938 if (ctx.env.authenticated) { 938 if (ctx.env.authenticated) {
939 html("</td><td class='form'>"); 939 html("</td><td class='form'>");
940 html("<form method='get' action=''>\n"); 940 html("<form method='get'>\n");
941 cgit_add_hidden_formfields(0, 1, ctx.qry.page); 941 cgit_add_hidden_formfields(0, 1, ctx.qry.page);
942 html("<select name='h' onchange='this.form.submit();'>\n"); 942 html("<select name='h' onchange='this.form.submit();'>\n");
943 for_each_branch_ref(print_branch_option, ctx.qry.head); 943 for_each_branch_ref(print_branch_option, ctx.qry.head);