]> granicus.if.org Git - cgit/commitdiff
forms: action should not be empty
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 12 May 2016 19:29:40 +0000 (21:29 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 12 May 2016 19:29:49 +0000 (21:29 +0200)
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
ui-shared.c
ui-stats.c

index 770b685d6ee7d958c2e2ed47c8f3e33723c67099..2c88b72de5ce505161860f67054046b68ab0cf25 100644 (file)
@@ -937,7 +937,7 @@ static void print_header(void)
                cgit_summary_link(ctx.repo->name, ctx.repo->name, NULL, NULL);
                if (ctx.env.authenticated) {
                        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);
                        html("<select name='h' onchange='this.form.submit();'>\n");
                        for_each_branch_ref(print_branch_option, ctx.qry.head);
index 8cd9178cea85cc909a20bb74cc435a424f252f85..7acd358d0f1ca7a137ae901481ae36b1d3374cfd 100644 (file)
@@ -389,7 +389,7 @@ void cgit_show_stats(void)
        cgit_print_layout_start();
        html("<div class='cgit-panel'>");
        html("<b>stat options</b>");
-       html("<form method='get' action=''>");
+       html("<form method='get'>");
        cgit_add_hidden_formfields(1, 0, "stats");
        html("<table><tr><td colspan='2'/></tr>");
        if (ctx.repo->max_stats > 1) {